2023-04-14 11:19:52 +02:00
|
|
|
if(CMAKE_HOST_WIN32)
|
|
|
|
set(program_name python)
|
2023-08-07 23:19:53 +03:00
|
|
|
set(program_version 3.11.4)
|
2023-04-14 11:19:52 +02:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
|
|
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")
|
2023-08-07 23:19:53 +03:00
|
|
|
set(download_sha512 4cdbb2efdc7764a87edfb7370716c1caf660d38bce37a280ec59b7aecab5672c5798aabe19a8ae395224bea7dfe644bd92656f0bbc44348717981b45a909c024)
|
2023-04-14 11:19:52 +02:00
|
|
|
else()
|
|
|
|
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")
|
2023-08-07 23:19:53 +03:00
|
|
|
set(download_sha512 3f93c2a16764b9ea6343315b70c0c6319aac8edaefbf4e21206fb30eff365e8fe37264a9133bebe12e664ea5d8fd232d587a5603a51fd96e1252a2fc01a2e550)
|
2023-04-14 11:19:52 +02:00
|
|
|
endif()
|
2023-08-07 23:19:53 +03:00
|
|
|
|
2023-04-14 11:19:52 +02:00
|
|
|
set(paths_to_search "${DOWNLOADS}/tools/python/${tool_subdirectory}")
|
2023-08-07 23:19:53 +03:00
|
|
|
vcpkg_list(SET post_install_command "${CMAKE_COMMAND}" -E rm python311._pth)
|
2023-04-14 11:19:52 +02:00
|
|
|
else()
|
|
|
|
set(program_name python3)
|
|
|
|
set(brew_package_name "python")
|
|
|
|
set(apt_package_name "python3")
|
|
|
|
endif()
|