Skip to content

Commit

Permalink
move generation of pari bindings sources out of build_ext
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwifb committed Aug 14, 2024
1 parent 2eae8c8 commit f80c880
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

ext_kwds = dict(include_dirs=include_dirs(), library_dirs=library_dirs())

# Generate auto-generated sources from pari.desc
# This needs to be done before build/build_ext so the generated pxd is moved
# to the build directory and installed with newer setuptools.
rebuild()

if "READTHEDOCS" in os.environ:
# When building with readthedocs, disable optimizations to decrease
Expand All @@ -28,9 +32,6 @@
# Adapted from Cython's new_build_ext
class build_ext(_build_ext):
def finalize_options(self):
# Generate auto-generated sources from pari.desc
rebuild()

self.directives = {
"autotestdict.cdef": True,
"binding": True,
Expand Down

0 comments on commit f80c880

Please sign in to comment.