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
torch-harmonics
Commits
9336efe8
Commit
9336efe8
authored
Jul 17, 2025
by
Andrea Paris
Committed by
Boris Bonev
Jul 21, 2025
Browse files
cleanup setup.py
parent
4770621b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
23 deletions
+2
-23
setup.py
setup.py
+2
-23
No files found.
setup.py
View file @
9336efe8
...
...
@@ -54,22 +54,8 @@ except (ImportError, TypeError, AssertionError, AttributeError) as e:
warnings
.
warn
(
f
"building custom extensions skipped:
{
e
}
"
)
def
get_compile_args
(
module_name
):
"""
Get compilation arguments based on environment variables.
"""Get compilation arguments based on environment variables."""
If user runs build with TORCH_HARMONICS_DEBUG=1 set, it will use debugging flags to build.
If TORCH_HARMONICS_PROFILE=1 is set, it will include profiling flags.
Parameters
-----------
module_name : str
Name of the module being compiled
Returns
-------
dict
Dictionary containing compilation flags for 'cxx' and 'nvcc' compilers
"""
debug_mode
=
os
.
environ
.
get
(
'TORCH_HARMONICS_DEBUG'
,
'0'
)
==
'1'
profile_mode
=
os
.
environ
.
get
(
'TORCH_HARMONICS_PROFILE'
,
'0'
)
==
'1'
...
...
@@ -92,15 +78,8 @@ def get_compile_args(module_name):
}
def
get_ext_modules
():
"""
Get list of extension modules to compile.
"""Get list of extension modules to compile."""
Returns
-------
tuple
(ext_modules, cmdclass) where ext_modules is a list of extension modules
and cmdclass is a dictionary of build commands
"""
ext_modules
=
[]
cmdclass
=
{}
...
...
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