File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2727sys .path .append (os .path .join (project_path , 'fake_pyrex' ))
2828
2929from setuptools import setup , find_packages , Extension
30- from Cython .Distutils import build_ext
30+ from Cython .Build import cythonize
3131import numpy as np
3232
3333libsharp = os .environ .get ('LIBSHARP' , None )
6464 'Intended Audience :: Science/Research' ,
6565 'License :: OSI Approved :: GNU General Public License (GPL)' ,
6666 'Topic :: Scientific/Engineering' ],
67- cmdclass = {"build_ext" : build_ext },
68- ext_modules = [
67+ ext_modules = cythonize ([
6968 Extension ("libsharp.libsharp" ,
7069 ["libsharp/libsharp.pyx" ],
7170 libraries = ["sharp" , "fftpack" , "c_utils" ],
8079 library_dirs = [libsharp_lib ],
8180 extra_link_args = ["-fopenmp" ],
8281 ),
83- ],
82+ ]) ,
8483 )
You can’t perform that action at this time.
0 commit comments