4545 Write-Output "WINPYVERSION is $env:WINPYVERSION"
4646 Write-Output "python_source is $env:python_source"
4747 Write-Output "python_sha256 is $env:python_sha256"
48+ Write-Output "WINPYrequirements is $env:WINPYrequirements"
49+ Write-Output "WINPYrequirementswhl is $env:WINPYrequirementswhl"
4850
4951 - name : Download python-3 standalone
5052 shell : pwsh
8890 # would run with shell: pwsh
8991 #if (-not (Test-Path "dotpython")) { New-Item -ItemType Directory -Path "dotpython" | Out-Null }
9092 #Copy-Item -Path "winpython/portable/launchers_final/*" -Destination "dotpython/" -Recurse -Force
91-
93+
94+ mkdir "dotpython\wheelhouse"
95+
9296 - name : List dotpython contents (for debugging)
9397 shell : pwsh
9498 run : |
@@ -124,6 +128,16 @@ jobs:
124128 run : |
125129 & "$env:build_location\python\python.exe" -m pip download --dest dotpython\wheelhouse --no-deps --require-hashes -r $env:WINPYrequirements
126130
131+ - name : download wheelhouserequirements as hashed-requirements in $env:build_location\wheelhouse
132+ shell : pwsh
133+ run : |
134+ $destwheelhouse="$env:build_location\wheelhouse"
135+ if ($env:WINPYrequirementswhl -eq "") {
136+ Write-Output "no Wheelhouse"
137+ } else {
138+ & "$env:build_location\python\python.exe" -m pip download --dest $destwheelhouse --no-deps --require-hashes -r $env:WINPYrequirementswhl
139+ }
140+
127141 - name : install requirements as hashed-requirements from dotpython\wheelhouse
128142 shell : pwsh
129143 run : |
@@ -138,7 +152,6 @@ jobs:
138152 & "$env:build_location\python\python.exe" -m wppm -md
139153 & "$env:build_location\python\python.exe" -m wppm -md | Out-File -FilePath $destfile -Encoding utf8
140154
141-
142155 & "$env:build_location\python\python.exe" -m pip freeze | Out-File -FilePath dotpython\freeze.txt
143156 $destfile = "publish_dot\pylock.$env:WINPYARCH-$($env:WINPYVER -replace '\.', '_').toml"
144157 & "$env:build_location\python\python.exe" -m pip lock --no-deps --find-links=dotpython\wheelhouse -r dotpython\freeze.txt -o $destfile
@@ -150,17 +163,31 @@ jobs:
150163 shell : pwsh
151164 run : |
152165 $destfile = "publish_dot\WinPython-$env:WINPYARCHbit-$env:WINPYVER.zip"
153- Compress-Archive -Path "$env:build_location" -DestinationPath $destfile
154-
166+ if ($env:WINPYZIP -eq "1") {
167+ Compress-Archive -Path "$env:build_location" -DestinationPath $destfile
168+ }
155169 - name : 7z archive the result
156170 shell : pwsh
157171 run : |
158172 $destfile7z = "publish_dot\WinPython-$env:WINPYARCHbit-$env:WINPYVER.7z"
159173 $sourceDir = "$env:build_location"
160174
161175 # Use 7z.exe from PATH, or specify full path if needed
176+ if ($env:WINPY7Z -eq "1") {
162177 7z a $destfile7z $sourceDir
178+ }
179+
180+ - name : 7z executable archive the result
181+ shell : pwsh
182+ run : |
183+ $destfile7z = "publish_dot\WinPython-$env:WINPYARCHbit-$env:WINPYVER.exe"
184+ $sourceDir = "$env:build_location"
163185
186+ # Use 7z.exe from PATH, or specify full path if needed
187+ if ($env:WINPYEXE -eq "1") {
188+ 7z a -sfx $destfile7z $sourceDir
189+ }
190+
164191 - name : Upload WinPython folder as artifact
165192 uses : actions/upload-artifact@v4
166193 with :
0 commit comments