mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[python3] Fix folder handling
This commit is contained in:
parent
e394d5915e
commit
5ab4a6f673
@ -1,3 +1,3 @@
|
||||
Source: python3
|
||||
Version: 3.6.4
|
||||
Version: 3.6.4-1
|
||||
Description: The Python programming language as an embeddable library
|
@ -9,7 +9,7 @@ set(PYTHON_VERSION_PATCH 4)
|
||||
set(PYTHON_VERSION ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}.${PYTHON_VERSION_PATCH})
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET})
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH TEMP_SOURCE_PATH
|
||||
REPO python/cpython
|
||||
@ -26,8 +26,9 @@ vcpkg_apply_patches(
|
||||
|
||||
# We need per-triplet directories because we need to patch the project files differently based on the linkage
|
||||
# Because the patches patch the same file, they have to be applied in the correct order
|
||||
file(COPY ${TEMP_SOURCE_PATH} DESTINATION ${SOURCE_PATH})
|
||||
set(SOURCE_PATH ${SOURCE_PATH}/cpython-${PYTHON_VERSION})
|
||||
set(SOURCE_PATH "${TEMP_SOURCE_PATH}-Lib-${VCPKG_LIBRARY_LINKAGE}-crt-${VCPKG_CRT_LINKAGE}")
|
||||
file(REMOVE_RECURSE ${SOURCE_PATH})
|
||||
file(RENAME "${TEMP_SOURCE_PATH}" ${SOURCE_PATH})
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
vcpkg_apply_patches(
|
||||
|
Loading…
x
Reference in New Issue
Block a user