Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 4, 2021
1 parent 9a2f8b2 commit 39ec132
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions winbuild/build_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,10 @@ def build_pillow():
python_dir = os.environ.get("PYTHON")
python_exe = os.environ.get("EXECUTABLE", "python.exe")
architecture = os.environ.get(
"ARCHITECTURE", "x86_arm64" if platform.machine() == 'ARM64' else
("x86" if struct.calcsize("P") == 4 else "x64")
"ARCHITECTURE",
"x86_arm64"
if platform.machine() == "ARM64"
else ("x86" if struct.calcsize("P") == 4 else "x64"),
)
build_dir = os.environ.get("PILLOW_BUILD", os.path.join(winbuild_dir, "build"))
sources_dir = ""
Expand Down

0 comments on commit 39ec132

Please sign in to comment.