We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a13a9b commit 41668b7Copy full SHA for 41668b7
1 file changed
python/setup.py
@@ -27,7 +27,7 @@
27
sys.path.append(os.path.join(project_path, 'fake_pyrex'))
28
29
from setuptools import setup, find_packages, Extension
30
-from Cython.Distutils import build_ext
+from Cython.Build import cythonize
31
import numpy as np
32
33
libsharp = os.environ.get('LIBSHARP', None)
@@ -64,8 +64,7 @@
64
'Intended Audience :: Science/Research',
65
'License :: OSI Approved :: GNU General Public License (GPL)',
66
'Topic :: Scientific/Engineering'],
67
- cmdclass = {"build_ext": build_ext},
68
- ext_modules = [
+ ext_modules = cythonize([
69
Extension("libsharp.libsharp",
70
["libsharp/libsharp.pyx"],
71
libraries=["sharp", "fftpack", "c_utils"],
@@ -80,5 +79,5 @@
80
79
library_dirs=[libsharp_lib],
81
extra_link_args=["-fopenmp"],
82
),
83
- ],
+ ]),
84
)
0 commit comments