mirror of
https://github.com/actions/python-versions.git
synced 2025-12-13 22:17:32 +00:00
Support building free-threaded CPython (#319)
* Support building free-threaded CPython Add support for Python's free threading build mode where the global interpreter lock is disabled. The packages are marked using a suffix on the architecture, like 'x64-freethreaded' or 'arm64-freethreaded'. * Match '-freethreaded' in arch * Use type 'string' instead of 'str' * On Linux, only delete Python installations with the same architecture. This matches the macOS behavior and allows users to install both the free-threading and default builds at the same time.
This commit is contained in:
@@ -24,9 +24,9 @@ echo "Check if Python hostedtoolcache folder exist..."
|
||||
if [ ! -d $PYTHON_TOOLCACHE_PATH ]; then
|
||||
echo "Creating Python hostedtoolcache folder..."
|
||||
mkdir -p $PYTHON_TOOLCACHE_PATH
|
||||
elif [ -d $PYTHON_TOOLCACHE_VERSION_PATH ]; then
|
||||
echo "Deleting Python $PYTHON_FULL_VERSION"
|
||||
rm -rf $PYTHON_TOOLCACHE_VERSION_PATH
|
||||
elif [ -d $PYTHON_TOOLCACHE_VERSION_ARCH_PATH ]; then
|
||||
echo "Deleting Python $PYTHON_FULL_VERSION ($ARCH)"
|
||||
rm -rf $PYTHON_TOOLCACHE_VERSION_ARCH_PATH
|
||||
fi
|
||||
|
||||
echo "Create Python $PYTHON_FULL_VERSION folder"
|
||||
|
||||
Reference in New Issue
Block a user