2023-04-14 17:19:52 +08:00
|
|
|
if(CMAKE_HOST_WIN32)
|
|
|
|
set(program_name python)
|
2023-09-08 04:12:03 +08:00
|
|
|
set(program_version 3.11.5)
|
2023-04-14 17:19:52 +08: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-09-08 04:12:03 +08:00
|
|
|
set(download_sha512 d5412c5bc2a0664f86e504a536c201789c8fd8b97c641bbb7b254c87c2f13504d25fa9d0b74e27a1c54c2d9fb592f9546d8c1e82c506dc9c76a21774c4c3ea75)
|
2023-04-14 17:19:52 +08: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-09-08 04:12:03 +08:00
|
|
|
set(download_sha512 29a526da7624423b09ea1c8f94d83e5ad2d7ba7553c5651d8fcbe1b2483c62f27f9db105d1fdcfca3357b44d456fe1141274725bc97ad5166edfec14f251eb36)
|
2023-04-14 17:19:52 +08:00
|
|
|
endif()
|
2023-08-08 04:19:53 +08:00
|
|
|
|
2023-04-14 17:19:52 +08:00
|
|
|
set(paths_to_search "${DOWNLOADS}/tools/python/${tool_subdirectory}")
|
2023-08-08 04:19:53 +08:00
|
|
|
vcpkg_list(SET post_install_command "${CMAKE_COMMAND}" -E rm python311._pth)
|
2023-04-14 17:19:52 +08:00
|
|
|
else()
|
|
|
|
set(program_name python3)
|
|
|
|
set(brew_package_name "python")
|
|
|
|
set(apt_package_name "python3")
|
|
|
|
endif()
|