Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python3] Update port to 3.11.10, tools to 3.12.6 #41232

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions ports/python3/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO python/cpython
REF v${PYTHON_VERSION}
SHA512 c2ebe72ce53dd2d59750a7b0bdaf15ebb7ecb6f67d2913a457bf5d32bd0f640815f9496f2fa3ebeac0722264d000735d90d3ffaeac2de1f066b7aee994bf9b24
REF v${VERSION}
SHA512 411f43495943b8aeec287d4339bac6beb6a7224b0844cc4d48188b208fbbbc6404ad031b6e7a3bed0900baf972c4536a54f4da1ab39202f4f405a188ca04ae07
HEAD_REF master
PATCHES ${PATCHES}
)
Expand Down Expand Up @@ -390,4 +390,4 @@ configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" "${CURRENT_PA
block()
set(CURRENT_HOST_INSTALLED_DIR "${CURRENT_PACKAGES_DIR}")
vcpkg_get_vcpkg_installed_python(VCPKG_PYTHON3)
endblocK()
endblock()
3 changes: 1 addition & 2 deletions ports/python3/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "python3",
"version": "3.11.8",
"port-version": 4,
"version": "3.11.10",
"description": "The Python programming language",
"homepage": "https://github.com/python/cpython",
"license": "Python-2.0",
Expand Down
2 changes: 1 addition & 1 deletion ports/vcpkg-get-python-packages/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vcpkg-get-python-packages",
"version-date": "2024-01-24",
"version-date": "2024-09-29",
"documentation": "https://learn.microsoft.com/en-us/vcpkg/maintainers/functions/vcpkg_get_python_packages",
"license": "MIT",
"supports": "native"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ function(x_vcpkg_get_python_packages)
endif()
endif()

if(arg_PYTHON_VERSION STREQUAL "3")
set(PYTHON_VERSION_MINOR 11)
endif()

if(NOT DEFINED arg_OUT_PYTHON_VAR)
set(arg_OUT_PYTHON_VAR "PYTHON${arg_PYTHON_VERSION}")
endif()
Expand All @@ -42,8 +38,8 @@ function(x_vcpkg_get_python_packages)
vcpkg_from_github(
OUT_SOURCE_PATH PYFILE_PATH
REPO pypa/get-pip
REF 38e54e5de07c66e875c11a1ebbdb938854625dd8 #2022-03-07
SHA512 431a9f66618a2f251db3a8c3311e7fc3af3ff7364ec1d14a99f1b9c237646b6146cef8b9471d83e1086dba2ed448bccc48d99b2bb375e4235d78e76d9970d3e5
REF 24.2
SHA512 7bcbc841564b7fc3cd2c109b9d3cfd34d853508edc9e040e9615fc0f9f18f74c7826d53671f65fa1abda3fd29a0a3f9f6114d9e9bdd6d120175ac207fd7ce321
)
vcpkg_execute_required_process(COMMAND "${arg_PYTHON_EXECUTABLE}" "${PYFILE_PATH}/public/get-pip.py" --no-warn-script-location
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}"
Expand Down Expand Up @@ -75,8 +71,9 @@ function(x_vcpkg_get_python_packages)
file(MAKE_DIRECTORY "${python_dir}/DLLs")
set(python_sub_path /Scripts)
set(python_venv virtualenv)
if(EXISTS "${python_dir}/python3${PYTHON_VERSION_MINOR}.zip")
file(COPY "${python_dir}/python3${PYTHON_VERSION_MINOR}.zip" DESTINATION "${venv_path}/Scripts")
file(GLOB python_zipped_stdlib "${python_dir}/python3*.zip")
if(python_zipped_stdlib)
file(COPY ${python_zipped_stdlib} DESTINATION "${venv_path}/Scripts")
endif()
set(python_venv_options "--app-data" "${venv_path}/data")
else()
Expand Down
15 changes: 10 additions & 5 deletions scripts/cmake/vcpkg_find_acquire_program(PYTHON3).cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if(CMAKE_HOST_WIN32)
set(program_name python)
set(program_version 3.11.8)
set(program_version 3.12.6)
if(DEFINED ENV{PROCESSOR_ARCHITEW6432})
set(build_arch $ENV{PROCESSOR_ARCHITEW6432})
else()
Expand All @@ -10,21 +10,26 @@ if(CMAKE_HOST_WIN32)
set(tool_subdirectory "python-${program_version}-arm64")
set(download_urls "https://www.python.org/ftp/python/${program_version}/python-${program_version}-embed-arm64.zip")
set(download_filename "python-${program_version}-embed-arm64.zip")
set(download_sha512 42b820e34c4a77fe928e0af395292d804dcbf7e1132cf353ce6ce23435a687ec580f03ccbf3cd94d98c9dc5ac951f8ca64dbd65cded7ef1d675a39d63f8ace8d)
set(download_sha512 AE87B0FDF9FA75C68A9ECF64628474819D19A57B79FB2D9BB1C3265833EE57CCC1C85C4CF696F90B80C7FAA53ADFD35E893886365202A90EEE0B879B29DA9CA1)
elseif(build_arch MATCHES "(amd|AMD)64")
set(tool_subdirectory "python-${program_version}-x64")
set(download_urls "https://www.python.org/ftp/python/${program_version}/python-${program_version}-embed-amd64.zip")
set(download_filename "python-${program_version}-embed-amd64.zip")
set(download_sha512 da5f01e94d3505eebdfd4d2e70d9cf494925199024479cc29ef144567906b2e8ad55a855b199a755318f5fb9a260f21b987a5fc85f31acf631af4b677921251d)
set(download_sha512 43E9EAB6FCE7E62F1BADF478706E3DF7F65A9BB0FDFF2EE01F71C65425ACD8D73E4E0DCC64A6EE59A7D934BE7271A4F0B9FE3E0DA62A5BA636663F628BD7FBD7)
else()
set(tool_subdirectory "python-${program_version}-x86")
set(download_urls "https://www.python.org/ftp/python/${program_version}/python-${program_version}-embed-win32.zip")
set(download_filename "python-${program_version}-embed-win32.zip")
set(download_sha512 c88ef02f0860000dbc59361cfe051e3e8dc7d208ed39bb5bc20a3e8b8711b578926e281a11941787ea61b2ef05b945ab3133322dcb85b916f79ac4ada57f6309)
set(download_sha512 1E1BAE458232E336799DDA220366D6BF9F4F54E4FE7E341E287FF9DB773E8D7C3E03004BA820C7DDB04EF1CE93064F002B96CA4E49326D749055E7D5F3C9ED2D)
endif()

set(paths_to_search "${DOWNLOADS}/tools/python/${tool_subdirectory}")
vcpkg_list(SET post_install_command "${CMAKE_COMMAND}" -E rm python311._pth)

# We want to be able to import stuff from outside of this embeddable package.
# https://docs.python.org/3/library/sys_path_init.html#pth-files
string(REGEX MATCH "^3\\.[0-9]+" _python_version_plain "${program_version}")
string(REPLACE "." "" _python_version_plain "${_python_version_plain}")
vcpkg_list(SET post_install_command "${CMAKE_COMMAND}" -E rm "python${_python_version_plain}._pth")
else()
set(program_name python3)
set(brew_package_name "python")
Expand Down
16 changes: 8 additions & 8 deletions scripts/vcpkgTools.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0"?>
<tools version="2">
<tool name="python3" os="windows">
<version>3.11.8</version>
<version>3.12.6</version>
<exeRelativePath>python.exe</exeRelativePath>
<url>https://www.python.org/ftp/python/3.11.8/python-3.11.8-embed-win32.zip</url>
<sha512>c88ef02f0860000dbc59361cfe051e3e8dc7d208ed39bb5bc20a3e8b8711b578926e281a11941787ea61b2ef05b945ab3133322dcb85b916f79ac4ada57f6309</sha512>
<archiveName>python-3.11.8-embed-win32.zip</archiveName>
<url>https://www.python.org/ftp/python/3.12.6/python-3.12.6-embed-win32.zip</url>
<sha512>1e1bae458232e336799dda220366d6bf9f4f54e4fe7e341e287ff9db773e8d7c3e03004ba820c7ddb04ef1ce93064f002b96ca4e49326d749055e7d5f3c9ed2d</sha512>
<archiveName>python-3.12.6-embed-win32.zip</archiveName>
</tool>
<tool name="python3_with_venv" os="windows">
<version>3.11.8</version>
<version>3.12.6</version>
<exeRelativePath>tools\python.exe</exeRelativePath>
<url>https://www.nuget.org/api/v2/package/python/3.11.8</url>
<sha512>8c1abd622fb2795fb87ab5208764fe13f7f4d69f2283b4237ea47b7c14b0989b5b4169f1ac1d3b1f417c6c2cc3d85ce151370dae8efc807c93e57cd67fa3c8cf</sha512>
<archiveName>python-3.11.8.nupkg.zip</archiveName>
<url>https://www.nuget.org/api/v2/package/python/3.12.6</url>
<sha512>2c7aea2435ee076140e366149d23e8c8280b3f90b419d29461d2312dcf761452586400684cb15d471530a07d2b513d0b19d0c83d670356785e68bd96bccacf4e</sha512>
<archiveName>python-3.12.6.nupkg.zip</archiveName>
</tool>
<tool name="cmake" os="windows">
<version>3.29.2</version>
Expand Down
6 changes: 3 additions & 3 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7253,8 +7253,8 @@
"port-version": 7
},
"python3": {
"baseline": "3.11.8",
"port-version": 4
"baseline": "3.11.10",
"port-version": 0
},
"qca": {
"baseline": "2.3.7",
Expand Down Expand Up @@ -9293,7 +9293,7 @@
"port-version": 0
},
"vcpkg-get-python-packages": {
"baseline": "2024-01-24",
"baseline": "2024-09-29",
"port-version": 0
},
"vcpkg-gfortran": {
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/python3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9a5c2869b2a7652c367eda5ba6f9468030f927c9",
"version": "3.11.10",
"port-version": 0
},
{
"git-tree": "42da794facada8d85273d1efcc53f1af7e8cb243",
"version": "3.11.8",
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/vcpkg-get-python-packages.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c7d017ccabcaf02739662b60cc1000b8489acb22",
"version-date": "2024-09-29",
"port-version": 0
},
{
"git-tree": "9205135e78e0cad47fd43c2f7abada1f4fbbdbaa",
"version-date": "2024-01-24",
Expand Down
Loading