mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
lint fixes
This commit is contained in:
parent
25c24a8a91
commit
c1799627df
|
@ -1,4 +1,9 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools >= 67.8", "wheel"]
|
|
||||||
build-backend = "backend"
|
build-backend = "backend"
|
||||||
backend-path = ["_custom_build"]
|
requires = [
|
||||||
|
"setuptools>=67.8",
|
||||||
|
"wheel",
|
||||||
|
]
|
||||||
|
backend-path = [
|
||||||
|
"_custom_build",
|
||||||
|
]
|
||||||
|
|
|
@ -5,7 +5,6 @@ import re
|
||||||
import shutil
|
import shutil
|
||||||
import struct
|
import struct
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def cmd_cd(path):
|
def cmd_cd(path):
|
||||||
|
@ -490,7 +489,7 @@ def build_env():
|
||||||
cmd_set("INCLIB", "{lib_dir}"),
|
cmd_set("INCLIB", "{lib_dir}"),
|
||||||
cmd_set("LIB", "{lib_dir}"),
|
cmd_set("LIB", "{lib_dir}"),
|
||||||
cmd_append("PATH", "{bin_dir}"),
|
cmd_append("PATH", "{bin_dir}"),
|
||||||
f"call {{vcvarsall}} {{vcvars_arch}}",
|
"call {vcvarsall} {vcvars_arch}",
|
||||||
cmd_set("DISTUTILS_USE_SDK", "1"), # use same compiler to build Pillow
|
cmd_set("DISTUTILS_USE_SDK", "1"), # use same compiler to build Pillow
|
||||||
cmd_set("py_vcruntime_redist", "true"), # always use /MD, never /MT
|
cmd_set("py_vcruntime_redist", "true"), # always use /MD, never /MT
|
||||||
":end",
|
":end",
|
||||||
|
@ -536,7 +535,7 @@ def build_dep(name):
|
||||||
|
|
||||||
banner = f"Building {name} ({dir})"
|
banner = f"Building {name} ({dir})"
|
||||||
lines = [
|
lines = [
|
||||||
rf'call "{{build_dir}}\build_env.cmd"',
|
r'call "{build_dir}\build_env.cmd"',
|
||||||
"@echo " + ("=" * 70),
|
"@echo " + ("=" * 70),
|
||||||
f"@echo ==== {banner:<60} ====",
|
f"@echo ==== {banner:<60} ====",
|
||||||
"@echo " + ("=" * 70),
|
"@echo " + ("=" * 70),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user