HomeFreeBSD

lang/python310: Fix build WITH_DEBUG

Description

lang/python310: Fix build WITH_DEBUG

Python 3.10 [0] is using a value for "EXT_SUFFIX" that includes
"SOABI" on FreeBSD, C extension module filenames are affected
by this change [1].

The limited C API is now supported if Python is built in debug mode [2],
removed %%NO_DEBUG%% from
%%NO_DEBUG%%lib/python%%XYDOT%%/lib-dynload/xxlimited.cpython-%%XY%%.so

[0]: https://github.com/python/cpython/commit/a44ce6c9f725d336aea51a946b42769f29fed613
[1]: https://github.com/python/cpython/blob/v3.10.0rc1/Lib/distutils/command/build_ext.py#L676-L684
[2]: https://github.com/python/cpython/commit/3359cab038968935b40344fad7c30d211f9692e4

PR: 256558
Approved by: koobs (python, maintainer)
MFH: No (Port does not exist in quarterly)

Details

Provenance
loaderAuthored on Aug 19 2021, 12:51 PM
Parents
R11:350158a17ebb: lang/python3[89]: Fix build WITH_DEBUG
Branches
Unknown
Tags
Unknown