lint fixes

This commit is contained in:
nulano 2023-06-24 15:57:43 +01:00
parent 25c24a8a91
commit c1799627df
No known key found for this signature in database
GPG Key ID: B650CDF63B705766
2 changed files with 9 additions and 5 deletions

View File

@ -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",
]

View File

@ -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),