From 7cde8fb66ec8ed957e05d892ac5ca71a40a55dc1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 13 May 2021 18:40:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cibuildwheel/macos.py | 10 +++++++++- cibuildwheel/windows.py | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 2a3b1881..0426441c 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -236,7 +236,15 @@ def setup_python( # ensure we have the version that matches our constraints # use "--force-reinstall" ensures that it's installed as 'pip' call( - ["python", "-m", "pip", "install", "--force-reinstall", "pip", *dependency_constraint_flags], + [ + "python", + "-m", + "pip", + "install", + "--force-reinstall", + "pip", + *dependency_constraint_flags, + ], env=env, cwd="/tmp", ) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index addd3bc0..42dfc85d 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -180,7 +180,15 @@ def setup_python( # ensure we have the version that matches our constraints # use "--force-reinstall" ensures that it's installed as 'pip.exe' call( - ["python", "-m", "pip", "install", "--force-reinstall", "pip", *dependency_constraint_flags], + [ + "python", + "-m", + "pip", + "install", + "--force-reinstall", + "pip", + *dependency_constraint_flags, + ], env=env, )