Skip to content

Commit

Permalink
Try removing the check for _pari.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Sep 3, 2024
1 parent db289aa commit 66c0d7f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,16 @@ def run(self):
output.write(code)

# If we have Cython, check that .c files are up to date
try:
import cython
print('Using cython version %s.' % cython.__version__)
from Cython.Build import cythonize
cythonize([os.path.join('cypari', '_pari.pyx')],
compiler_directives={'language_level':2})
except ImportError:
if not os.path.exists(os.path.join('cypari', '_pari.c')):
sys.exit(no_cython_message)
# try:
# from Cython.Build import cythonize
# cythonize([os.path.join('cypari', '_pari.pyx')],
# compiler_directives={'language_level':2})
# except ImportError:
# if not os.path.exists(os.path.join('cypari', '_pari.c')):
# sys.exit(no_cython_message)
from Cython.Build import cythonize
cythonize([os.path.join('cypari', '_pari.pyx')],
compiler_directives={'language_level':2})
build_ext.run(self)

class CyPariSourceDist(sdist):
Expand Down

0 comments on commit 66c0d7f

Please sign in to comment.