Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ktransformers
Commits
8dc1ab9e
Unverified
Commit
8dc1ab9e
authored
Apr 14, 2025
by
ZiWei Yuan
Committed by
GitHub
Apr 14, 2025
Browse files
Merge pull request #1108 from jizhilong/expose-cmake-logs
chore: show cmake output in real time during build_ext
parents
038db30e
690d4d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
setup.py
setup.py
+3
-5
No files found.
setup.py
View file @
8dc1ab9e
...
@@ -403,11 +403,9 @@ class CMakeBuild(BuildExtension):
...
@@ -403,11 +403,9 @@ class CMakeBuild(BuildExtension):
if
not
build_temp
.
exists
():
if
not
build_temp
.
exists
():
build_temp
.
mkdir
(
parents
=
True
)
build_temp
.
mkdir
(
parents
=
True
)
result
=
subprocess
.
run
(
subprocess
.
run
(
[
"cmake"
,
ext
.
sourcedir
,
*
cmake_args
],
cwd
=
build_temp
,
check
=
True
,
capture_output
=
True
,
text
=
True
[
"cmake"
,
ext
.
sourcedir
,
*
cmake_args
],
cwd
=
build_temp
,
check
=
True
)
)
print
(
"Standard output:"
,
result
.
stdout
)
print
(
"Standard error:"
,
result
.
stderr
)
subprocess
.
run
(
subprocess
.
run
(
[
"cmake"
,
"--build"
,
"."
,
"--verbose"
,
*
build_args
],
cwd
=
build_temp
,
check
=
True
[
"cmake"
,
"--build"
,
"."
,
"--verbose"
,
*
build_args
],
cwd
=
build_temp
,
check
=
True
)
)
...
@@ -480,4 +478,4 @@ setup(
...
@@ -480,4 +478,4 @@ setup(
version
=
VersionInfo
().
get_package_version
(),
version
=
VersionInfo
().
get_package_version
(),
cmdclass
=
{
"bdist_wheel"
:
BuildWheelsCommand
,
"build_ext"
:
CMakeBuild
},
cmdclass
=
{
"bdist_wheel"
:
BuildWheelsCommand
,
"build_ext"
:
CMakeBuild
},
ext_modules
=
ext_modules
ext_modules
=
ext_modules
)
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment