Skip to content
Snippets Groups Projects
Commit 64d708cb authored by David Verelst's avatar David Verelst
Browse files

rename variable so it doesn't overwrite imported method

parent 58af00be
No related branches found
Tags v0.0.17
1 merge request!132rename variable so it doesn't overwrite imported method
Pipeline #10630 failed
......@@ -26,8 +26,8 @@ from distutils.extension import Extension
from Cython.Distutils import build_ext
def setup_package(build_ext=True):
if build_ext:
def setup_package(build_ext_switch=True):
if build_ext_switch:
ex_info = [('wetb.fatigue_tools.rainflowcounting', ['pair_range', 'peak_trough', 'rainflowcount_astm']),
('wetb.signal.filters', ['cy_filters'])]
else:
......@@ -74,6 +74,6 @@ if __name__ == "__main__":
try:
setup_package()
except:
setup_package(False)
setup_package(build_ext_switch=False)
raise Warning(
"WETB installed, but building extensions failed (i.e. it falls back on the slower pure python implementions)")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment