File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 66/build /
77/ci /
88/dist /
9+ /wheelhouse /
910/docs /_build /
1011/MANIFEST
1112/venv *
Original file line number Diff line number Diff line change 2828# Import setuptools before distutils to avoid user warning
2929import os
3030import sys
31+ import sysconfig
3132from distutils import log # type: ignore[attr-defined]
3233from distutils .command .build import build
3334from distutils .command .sdist import sdist
@@ -152,6 +153,16 @@ def run(self) -> None:
152153 cmdclass = cmdclass ,
153154 cffi_modules = ['pygit2/_run.py:ffi' ],
154155 ext_modules = ext_modules ,
156+ options = {
157+ 'bdist_wheel' : {
158+ # for ABI3 (future-compatible) wheels.
159+ # NOTE: free-threaded CPython builds do not support the limited API yet.
160+ # See https://github.com/python/cpython/issues/111506
161+ 'py_limited_api' : False
162+ if sysconfig .get_config_var ('Py_GIL_DISABLED' )
163+ else 'cp310' # should correspond to `python_requires` below
164+ }
165+ },
155166 # Requirements
156167 python_requires = '>=3.10' ,
157168 setup_requires = ['cffi>=2.0' ],
You can’t perform that action at this time.
0 commit comments