-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from UIUCLibrary/remove-python38-support
Remove python38 support
- Loading branch information
Showing
8 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
python3.8-venv | ||
python3.8-dev | ||
python3-pip | ||
python3.9-dev | ||
python3.9-venv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[string]$XmlFilePath | ||
) | ||
choco.exe install -y --stoponfirstfailure --no-progress --verbose $XmlFilePath | ||
refreshenv ; | ||
|
||
try { | ||
# Attempt to load the XML file | ||
[xml]$xmlContent = Get-Content -Path $XmlFilePath -ErrorAction Stop | ||
|
||
if ($xmlContent.SelectNodes("//packages")) { | ||
# Iterate over each <package> within <packages> | ||
foreach ($package in $xmlContent.packages.package) { | ||
Write-Host "Testing version for $($package.id)" | ||
if ($package.id -match "python(\d)(\d+)") | ||
{ | ||
$majorVersion = $matches[1] | ||
$minorVersion = $matches[2] | ||
$formattedVersion = "$majorVersion.$minorVersion" | ||
py -$formattedVersion --version | ||
} | ||
Write-Host "-----------------------------" | ||
} | ||
} else { | ||
Write-Host "The XML file does not contain any <packages> tags." | ||
} | ||
} | ||
catch { | ||
Write-Host "The file $XmlFilePath does not exist or could not be loaded." | ||
exit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters