Add support for building Python 3.10.x #383
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add checksums for Python 3.10.0 to 3.10.17
Set default python version to 3.10.17
Added modules:
_testclinic
introduced in Python 3.10.10_xxsubinterpreters
introduced in Python 3.7Removed modules:
parser
Removed options:
BUILD_WININST
andBUILD_WININST_ALWAYS
was removedin Python 3.10. See python/cpython@0e2a0f72cc9 ("bpo-42802: Remove distutils
bdist_wininst command (GH-24043)", 2021-01-09)
Definitions:
PY3_DLLNAME
withPython/pathconfig.c
.Readline support:
Add support building against libedit (editline) library on non-apple system
by setting the
WITH_EDITLINE
definition ifUSE_LIBEDIT
CMake option is ON.See python/cpython@e1f77695132 ("bpo-13501: allow choosing between readline and libedit (GH-24189)", 2021-02-09)
Change
USE_LIBEDIT
CMake option to be independent ofUSE_SYSTEM_READLINE
.Remove setting of
USE_LIBEDIT
definition that was specificto
cmake/patches/01-readline-libedit.patch
. Remove the patch as it was notapplied automatically and is now superseded by the use of
WITH_EDITLINE
available starting with Python 3.10.Updated pyconfig.h.in and configure checks:
Add
WITH_VALGRIND
top-level CMake option. If enabled and if headervalgrind/valgrind.h
is found, the CMake variable
DYNAMIC_ANNOTATIONS_ENABLED
is set and the correspondingpre-processor is defined in
pyconfig.h
.Skip adding
EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
as it was added inPython 3.10 and later removed in Python 3.11:
Add header checks:
HAVE_LINUX_AUXVEC_H
HAVE_SYS_AUXV_H
HAVE_SYS_EVENTFD_H
Add size type checks:
ALIGNOF_LONG
ALIGNOF_SIZE_T
Add symbol checks:
HAVE_SPLICE
HAVE_CLOSE_RANGE
HAVE_EVENTFD
HAVE_VFORK
Working toward addressing: