@@ -802,57 +802,57 @@ function Fetch-Dependencies {
802
802
$Python = @ {
803
803
AMD64 = @ {
804
804
URL = " https://www.nuget.org/api/v2/package/python/$PythonVersion " ;
805
- Hash = " ac43b491e9488ac926ed31c5594f0c9409a21ecbaf99dc7a93f8c7b24cf85867" ;
805
+ SHA256 = " ac43b491e9488ac926ed31c5594f0c9409a21ecbaf99dc7a93f8c7b24cf85867" ;
806
806
};
807
807
ARM64 = @ {
808
808
URL = " https://www.nuget.org/api/v2/package/pythonarm64/$PythonVersion " ;
809
- Hash = " 429ada77e7f30e4bd8ff22953a1f35f98b2728e84c9b1d006712561785641f69" ;
809
+ SHA256 = " 429ada77e7f30e4bd8ff22953a1f35f98b2728e84c9b1d006712561785641f69" ;
810
810
}
811
811
}
812
812
813
- DownloadAndVerify $Python [$ArchName ].URL " $BinaryCache \Python$ArchName -$PythonVersion .zip" $Python [$ArchName ].Hash
813
+ DownloadAndVerify $Python [$ArchName ].URL " $BinaryCache \Python$ArchName -$PythonVersion .zip" $Python [$ArchName ].SHA256
814
814
if (-not $ToBatch ) {
815
815
Extract- ZipFile Python$ArchName - $PythonVersion.zip " $BinaryCache " Python$ArchName - $PythonVersion
816
816
}
817
817
}
818
818
819
- function Install-PythonWheel ([string ] $Python , [ string ] $ ModuleName, [string ] $WheelFile , [string ] $WheelURL , [string ] $WheelHash ) {
819
+ function Install-PythonWheel ([string ] $ModuleName , [string ] $WheelFile , [string ] $WheelURL , [string ] $WheelHash ) {
820
820
try {
821
- Invoke-Program - OutNull $Python - c " import $ModuleName " * > $null
821
+ Invoke-Program " $ ( Get-PythonExecutable ) " - c " import $ModuleName " * > $null
822
822
} catch {
823
823
DownloadAndVerify $WheelURL " $BinaryCache \python\$WheelFile " $WheelHash
824
824
Write-Output " Installing '$WheelFile ' ..."
825
- Invoke-Program - OutNull $Python ' -I' - m pip install " $BinaryCache \python\$WheelFile " -- disable-pip - version- check
825
+ Invoke-Program - OutNull " $ ( Get-PythonExecutable ) " ' -I' - m pip install " $BinaryCache \python\$WheelFile " -- disable-pip - version- check
826
826
}
827
827
}
828
828
829
- function Install-PythonModules ([ string ] $Python ) {
829
+ function Install-PythonModules () {
830
830
# First ensure pip is installed, else bootstrap it
831
831
try {
832
- Invoke-Program - OutNull $Python - m pip * > $null
832
+ Invoke-Program " $ ( Get-PythonExecutable ) " - m pip * > $null
833
833
} catch {
834
834
Write-Output " Installing pip ..."
835
- Invoke-Program - OutNull $Python ' -I' - m ensurepip - U -- default- pip
835
+ Invoke-Program - OutNull " $ ( Get-PythonExecutable ) " ' -I' - m ensurepip - U -- default- pip
836
836
}
837
837
838
838
# 'packaging' is required for building LLVM 18+
839
- Install-PythonWheel $Python ' packaging' ' packaging-24.1-py3-none-any.whl' `
839
+ Install-PythonWheel ' packaging' ' packaging-24.1-py3-none-any.whl' `
840
840
' https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl' `
841
841
' 5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124'
842
842
843
843
# 'setuptools' provides 'distutils' module for Python 3.12+, required for SWIG support
844
- Install-PythonWheel $Python ' distutils' ' setuptools-75.1.0-py3-none-any.whl' `
844
+ Install-PythonWheel ' distutils' ' setuptools-75.1.0-py3-none-any.whl' `
845
845
' https://files.pythonhosted.org/packages/ff/ae/f19306b5a221f6a436d8f2238d5b80925004093fa3edea59835b514d9057/setuptools-75.1.0-py3-none-any.whl' `
846
846
' 35ab7fd3bcd95e6b7fd704e4a1539513edad446c097797f2985e0e4b960772f2'
847
847
848
848
if ($Test -contains " lldb" ) {
849
849
# 'psutil' is required for testing LLDB
850
- Install-PythonWheel $Python ' psutil' ' psutil-6.1.0-cp37-abi3-win_amd64.whl' `
850
+ Install-PythonWheel ' psutil' ' psutil-6.1.0-cp37-abi3-win_amd64.whl' `
851
851
' https://files.pythonhosted.org/packages/11/91/87fa6f060e649b1e1a7b19a4f5869709fbf750b7c8c262ee776ec32f3028/psutil-6.1.0-cp37-abi3-win_amd64.whl' `
852
852
' a8fb3752b491d246034fa4d279ff076501588ce8cbcdbb62c32fd7a377d996be'
853
853
854
854
# 'unittest2' is required for testing LLDB
855
- Install-PythonWheel $Python ' unittest2' ' unittest2-1.1.0-py2.py3-none-any.whl' `
855
+ Install-PythonWheel ' unittest2' ' unittest2-1.1.0-py2.py3-none-any.whl' `
856
856
' https://files.pythonhosted.org/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl' `
857
857
' 13f77d0875db6d9b435e1d4f41e74ad4cc2eb6e1d5c824996092b3430f088bb8'
858
858
}
@@ -863,7 +863,7 @@ function Fetch-Dependencies {
863
863
Install-Python $BuildArchName
864
864
}
865
865
# Ensure Python modules that are required as host build tools
866
- Install-PythonModules " $ ( Get-PythonExecutable ) "
866
+ Install-PythonModules
867
867
868
868
if ($Android ) {
869
869
# Only a specific NDK version is supported right now.
0 commit comments