Skip to content

Commit

Permalink
MNT: remove ENV to control limited API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell authored Sep 16, 2024
1 parent ae0d1f5 commit 1407fcd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@
]


# build with Py_LIMITED_API unless explicitly disabled
USE_PY_LIMITED_API = (
(not sysconfig.get_config_var("Py_GIL_DISABLED")) and
os.getenv("PYERFA_LIMITED_API", "1") != "0"
)
# build with Py_LIMITED_API unless in freethreading build (which does not currently
# support the limited API in py313t)
USE_PY_LIMITED_API = not sysconfig.get_config_var("Py_GIL_DISABLED")

class bdist_wheel_abi3(bdist_wheel):
def get_tag(self):
Expand Down

0 comments on commit 1407fcd

Please sign in to comment.