Skip to content

Commit

Permalink
Update setup.py - - not cythonize exts
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki authored Apr 23, 2024
1 parent 8469c3c commit cfcc72a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,11 @@ def setup_package():

try:
cythonize_ext_modules = cythonize(ext_modules2)
except:
cythonize_ext_modules = cythonize(ext_modules)
except ValueError:
try:
cythonize_ext_modules = cythonize(ext_modules)
except ValueError:
cythonize_ext_modules = None

metadata = dict(name=DISTNAME,
maintainer=MAINTAINER,
Expand All @@ -217,7 +220,7 @@ def setup_package():
platforms=["linux", "macosx", "windows"],
python_requires=">=3.5",
install_requires=install_requires,
setup_requires=["numpy>= 1.13.0"],
setup_requires=["numpy>=1.13.0"],
package_data={'': ['*.pxd']},
packages=find_packages(),
ext_modules=cythonize_ext_modules,
Expand Down

0 comments on commit cfcc72a

Please sign in to comment.