Skip to content

Commit 7398c43

Browse files
committed
feat: revert future-compatible deployments
This reverts commit 5f655b7. There's much more needed in pygit2 C sources (`src/*`) to comply with CPython's Limited API. Unfortunately, this feature is not entirely dependent on `cffi` (which only handles libgit2 compilation). This can be re-addressed at a later time, when more time is available. ref #1418 (comment) reopens #1046
1 parent e5620b9 commit 7398c43

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

setup.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
# Import setuptools before distutils to avoid user warning
2929
import os
3030
import sys
31-
import sysconfig
3231
from distutils import log # type: ignore[attr-defined]
3332
from distutils.command.build import build
3433
from distutils.command.sdist import sdist
@@ -153,16 +152,6 @@ def run(self) -> None:
153152
cmdclass=cmdclass,
154153
cffi_modules=['pygit2/_run.py:ffi'],
155154
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-
},
166155
# Requirements
167156
python_requires='>=3.10',
168157
setup_requires=['cffi>=2.0'],

0 commit comments

Comments
 (0)