Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import shutil
import subprocess
import sys
import sysconfig
from setuptools import setup
from setuptools.command.build_py import build_py
from setuptools.command.sdist import sdist
Expand Down Expand Up @@ -149,5 +150,6 @@ def run(self):
setup(
cmdclass={'build_py': CustomBuild, 'sdist': CustomSDist},
has_ext_modules=lambda: True, # It's not a Pure Python wheel,
options={"bdist_wheel": {"py_limited_api": "cp37"}}, # to have ABI3 tagged wheel
# Build ABI3 tagged wheel only if interpreter is not free-threaded
options={"bdist_wheel": {"py_limited_api": False if bool(sysconfig.get_config_var("Py_GIL_DISABLED")) else "cp37"}},
)