Skip to content

Commit

Permalink
use cython legacy directives for sage
Browse files Browse the repository at this point in the history
  • Loading branch information
infmagic2047 committed Aug 20, 2023
1 parent cf458dd commit 67ad2e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sage_setup/cython_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ def compiler_directives(profile: bool):
auto_pickle=False,
# Do not create __test__ dictionary automatically from docstrings
autotestdict=False,
binding=False,
c_api_binop_methods=True,
# Do not check for division by 0 (this is about 35% quicker than with check)
cdivision=True,
cpow=True,
# Embed a textual copy of the call signature in the docstring (to support tools like IPython)
embedsignature=True,
fast_getattr=True,
# Use Python 3 (including source code semantics) for module compilation
language_level="3",
legacy_implicit_noexcept=True,
# Enable support for late includes (make declarations in Cython code available to C include files)
preliminary_late_includes_cy28=True,
# Add hooks for Python profilers into the compiled C code
Expand Down

0 comments on commit 67ad2e4

Please sign in to comment.