Replace direct invocation of setup.py

This commit is contained in:
Hugo van Kemenade 2023-05-27 15:16:55 +03:00
parent 18960e8416
commit 9ea7721a71

View File

@ -569,7 +569,10 @@ def build_pillow():
*prefs["header"],
cmd_set("DISTUTILS_USE_SDK", "1"), # use same compiler to build Pillow
cmd_set("py_vcruntime_redist", "true"), # always use /MD, never /MT
r'"{python_dir}\{python_exe}" setup.py build_ext --vendor-raqm --vendor-fribidi %*', # noqa: E501
r'"{python_dir}\{python_exe}" -m pip install . '
r'--global-option="--vendor-raqm" '
r'--global-option="--vendor-fribidi" '
r'--global-option="%*"',
]
write_script("build_pillow.cmd", lines)