Skip to content
Merged
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
11 changes: 1 addition & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,6 @@

PYMUPDF_SETUP_PY_LIMITED_API
If not '0', we build for current Python's stable ABI.

However if unset and we are on Python-3.13 or later, we do
not build for the stable ABI because as of 2025-03-04 SWIG
generates incorrect stable ABI code with Python-3.13 - see:
https://github.com/swig/swig/issues/3059

PYMUPDF_SETUP_URL_WHEEL
If set, we use an existing wheel instead of building a new wheel.
Expand Down Expand Up @@ -236,11 +231,7 @@
PYMUPDF_SETUP_PY_LIMITED_API = os.environ.get('PYMUPDF_SETUP_PY_LIMITED_API')
assert PYMUPDF_SETUP_PY_LIMITED_API in (None, '', '0', '1'), \
f'Should be "", "0", "1" or undefined: {PYMUPDF_SETUP_PY_LIMITED_API=}.'
if PYMUPDF_SETUP_PY_LIMITED_API is None and python_version_tuple >= (3, 13):
log(f'Not defaulting to Python limited api because {platform.python_version_tuple()=}.')
g_py_limited_api = False
else:
g_py_limited_api = (PYMUPDF_SETUP_PY_LIMITED_API != '0')
g_py_limited_api = (PYMUPDF_SETUP_PY_LIMITED_API != '0')

PYMUPDF_SETUP_URL_WHEEL = os.environ.get('PYMUPDF_SETUP_URL_WHEEL')
log(f'{PYMUPDF_SETUP_URL_WHEEL=}')
Expand Down