mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 15:19:44 +02:00
Use vcpkg nuget for python package
Add ability to use vcpkg nuget to install python 3 package This will help us move away from using the `nuget_package` function later Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org>
This commit is contained in:
parent
4ef309ae2a
commit
c144b411d4
@ -697,8 +697,12 @@ endif()
|
||||
find_package( Python3 )
|
||||
if( Python3_FOUND )
|
||||
set( PYTHON "${Python3_EXECUTABLE}" )
|
||||
elseif( DEFINED NUGET_EXECUTABLE AND EXISTS "${NUGET_EXECUTABLE}" )
|
||||
message( STATUS "Finding vcpkg nuget python" )
|
||||
execute_process( COMMAND "${NUGET_EXECUTABLE}" install python -Version 3.9.7 -OutputDirectory "${CMAKE_BINARY_DIR}/packages/" )
|
||||
file( TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/packages/python.3.9.7/tools/python.exe" PYTHON )
|
||||
elseif( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||
# This is an odd case now, as Conan requires Python as well
|
||||
# This is defined in AudacityFunctions; maybe we can remove it by simply relying on vcpkg nuget?
|
||||
nuget_package( pkgdir "python3" "3.9.7" )
|
||||
file( TO_NATIVE_PATH "${pkgdir}/tools/python.exe" PYTHON )
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user