From c1799627df23bcda120cb9c278fb3c292e2b235e Mon Sep 17 00:00:00 2001 From: nulano Date: Sat, 24 Jun 2023 15:57:43 +0100 Subject: [PATCH] lint fixes --- pyproject.toml | 9 +++++++-- winbuild/build_prepare.py | 5 ++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1d32e7d90..93a433608 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,9 @@ [build-system] -requires = ["setuptools >= 67.8", "wheel"] build-backend = "backend" -backend-path = ["_custom_build"] +requires = [ + "setuptools>=67.8", + "wheel", +] +backend-path = [ + "_custom_build", +] diff --git a/winbuild/build_prepare.py b/winbuild/build_prepare.py index e7ccf3385..fcc433942 100644 --- a/winbuild/build_prepare.py +++ b/winbuild/build_prepare.py @@ -5,7 +5,6 @@ import re import shutil import struct import subprocess -import sys def cmd_cd(path): @@ -490,7 +489,7 @@ def build_env(): cmd_set("INCLIB", "{lib_dir}"), cmd_set("LIB", "{lib_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("py_vcruntime_redist", "true"), # always use /MD, never /MT ":end", @@ -536,7 +535,7 @@ def build_dep(name): banner = f"Building {name} ({dir})" lines = [ - rf'call "{{build_dir}}\build_env.cmd"', + r'call "{build_dir}\build_env.cmd"', "@echo " + ("=" * 70), f"@echo ==== {banner:<60} ====", "@echo " + ("=" * 70),