Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Activate binding=true compiler directive
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Jan 8, 2022
1 parent e3d5bc0 commit 89487a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sage_setup/cython_options.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys


def compiler_directives(profile: bool):
"""
Return a list of Cython directives used for compilation.
Expand All @@ -20,8 +21,13 @@ def compiler_directives(profile: bool):
preliminary_late_includes_cy28=True,
# Add hooks for Python profilers into the compiled C code
profile=profile,
# Free functions behave more like Python's function
# (in particular, they include introspections)
# This will be the default in Cython 3.0 and can then be removed
binding=True,
)


def compile_time_env_variables():
"""
Return a list of environmental variables used for compilation.
Expand Down

0 comments on commit 89487a7

Please sign in to comment.