Add/Update Python dependencies for build_windows

This commit is contained in:
2Shirt 2023-06-24 19:44:20 -07:00
parent dfcc717048
commit d34df7ae07
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -100,10 +100,10 @@ if ($MyInvocation.InvocationName -ne ".") {
# Python: psutil
$DownloadPage = "https://pypi.org/project/psutil/"
$RegEx = "href=.*-cp310-cp310-win32.whl"
$RegEx = "href=.*-cp36-abi3-win32.whl"
$Url = FindDynamicUrl $DownloadPage $RegEx
DownloadFile -Path $Temp -Name "psutil32.whl" -Url $Url
$RegEx = "href=.*-cp310-cp310-win_amd64.whl"
$RegEx = "href=.*-cp36-abi3-win_amd64.whl"
$Url = FindDynamicUrl $DownloadPage $RegEx
DownloadFile -Path $Temp -Name "psutil64.whl" -Url $Url
@ -156,15 +156,18 @@ if ($MyInvocation.InvocationName -ne ".") {
foreach ($Arch in @("32", "64")) {
Write-Host "Extracting: Python (x$Arch)"
$Files = @(
"python$Arch.zip",
"Pygments",
"certifi.whl",
"chardet.whl",
"docopt.whl",
"idna.whl",
"pytz.whl",
"prompt_toolkit",
"psutil$Arch.whl",
"python$Arch.zip",
"pytz.whl",
"requests.whl",
"urllib3.whl"
"urllib3.whl",
"wcwidth"
)
try {
foreach ($File in $Files) {