Skip to content

Fix setup.py generation of PY_VERSION_HEX#1

Closed
sassy-asjp wants to merge 1 commit intodevelopfrom
bug/setup-py-version-hex
Closed

Fix setup.py generation of PY_VERSION_HEX#1
sassy-asjp wants to merge 1 commit intodevelopfrom
bug/setup-py-version-hex

Conversation

@sassy-asjp
Copy link
Owner

For more details on the correct format see https://docs.python.org/3/c-api/apiabiversion.html#c.PY_VERSION_HEX

Description

The format string was rewritten to handle minor versions with two decimal digits. This is by converting the minor version to an int then reformatting as hex.

Verification

This fix was tested locally

Documentation

None

Future work

None

@sassy-asjp sassy-asjp closed this Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setup.py pyLimitedAPI calculation is incorrect for Python 3.10-3.12

1 participant