Skip to content

Commit cf71b75

Browse files
committed
alignement
1 parent 731b35b commit cf71b75

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

.github/workflows/github_workflows_build-dot.yml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
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
@@ -88,7 +90,9 @@ jobs:
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:

.github/workflows/github_workflows_build-whl.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
#Copy-Item -Path "winpython/portable/launchers_final/*" -Destination "dotpython/" -Recurse -Force
9393
9494
mkdir "dotpython\wheelhouse"
95-
95+
9696
- name: List dotpython contents (for debugging)
9797
shell: pwsh
9898
run: |
@@ -137,6 +137,7 @@ jobs:
137137
} else {
138138
& "$env:build_location\python\python.exe" -m pip download --dest $destwheelhouse --no-deps --require-hashes -r $env:WINPYrequirementswhl
139139
}
140+
140141
- name: install requirements as hashed-requirements from dotpython\wheelhouse
141142
shell: pwsh
142143
run: |

0 commit comments

Comments
 (0)