Wrap arguments before passing

Co-authored-by: nulano <nulano@nulano.eu>
This commit is contained in:
Hugo van Kemenade 2023-05-28 21:20:42 +03:00
parent 7f0c49a6c7
commit d5e03cca88
3 changed files with 5 additions and 5 deletions

View File

@ -72,7 +72,7 @@ before_deploy:
- cd c:\pillow
- '%PYTHON%\%EXECUTABLE% -m pip install wheel'
- cd c:\pillow\winbuild\
- c:\pillow\winbuild\build\build_pillow.cmd bdist_wheel
- c:\pillow\winbuild\build\build_pillow.cmd --global-option="bdist_wheel"
- cd c:\pillow
- ps: Get-ChildItem .\dist\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

View File

@ -166,8 +166,8 @@ jobs:
- name: Build Pillow
run: |
$FLAGS=""
if ('${{ github.event_name }}' -ne 'pull_request') { $FLAGS="--disable-imagequant" }
& winbuild\build\build_pillow.cmd $FLAGS install
if ('${{ github.event_name }}' -ne 'pull_request') { $FLAGS='--global-option="--disable-imagequant"' }
& winbuild\build\build_pillow.cmd $FLAGS --global-option="install"
& $env:pythonLocation\python.exe selftest.py --installed
shell: pwsh
@ -231,7 +231,7 @@ jobs:
)
)
for /f "tokens=3 delims=/" %%a in ("${{ github.ref }}") do echo dist=dist-%%a >> %GITHUB_OUTPUT%
winbuild\\build\\build_pillow.cmd --disable-imagequant bdist_wheel
winbuild\\build\\build_pillow.cmd --global-option="--disable-imagequant" --global-option="bdist_wheel"
shell: cmd
- name: Upload wheel

View File

@ -572,7 +572,7 @@ def build_pillow():
r'"{python_dir}\{python_exe}" -m pip install . '
r'--global-option="--vendor-raqm" '
r'--global-option="--vendor-fribidi" '
r'--global-option="%*"',
r"%*",
]
write_script("build_pillow.cmd", lines)