Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3695294

Browse files
committed
small compaction, as all AIs suggest it
1 parent 556f1de commit 3695294

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/github_workflows_build-2026_01.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,15 @@ jobs:
172172
& "$env:build_location\python\python.exe" -m pip install --upgrade packaging==25.0
173173
& "$env:build_location\python\python.exe" -c "from wppm import wppm;dist=wppm.Distribution();dist.patch_standard_packages('pip', to_movable=True)"
174174
175-
- name: Download requirements to $env:dotwheelhouse
176-
if: env.WINPYREQUIREMENTS != ''
177-
shell: pwsh
178-
run: |
179-
& "$env:build_location\python\python.exe" -m pip download --dest $env:dotwheelhouse --no-deps --require-hashes -r $env:WINPYREQUIREMENTS
180-
181-
- name: Download requirements to $env:dotwheelhouse
182-
if: env.WINPYREQUIREMENTSwhl != ''
175+
- name: Download all requirements
176+
if: ${{ env.WINPYREQUIREMENTS != '' }}
183177
shell: pwsh
184178
run: |
185-
& "$env:build_location\python\python.exe" -m pip download --dest $env:destwheelhouse --no-deps --require-hashes -r $env:WINPYREQUIREMENTSwhl
179+
$py = "$env:build_location\python\python.exe"
180+
& $py -m pip download --dest $env:dotwheelhouse --no-deps --require-hashes -r $env:WINPYREQUIREMENTS
181+
if ($env:WINPYREQUIREMENTSwhl -ne '') {
182+
& $py -m pip download --dest $env:destwheelhouse --no-deps --require-hashes -r $env:WINPYREQUIREMENTSwhl
183+
}
186184
187185
- name: Install requirements
188186
if: env.WINPYREQUIREMENTS != ''

0 commit comments

Comments
 (0)