From 4dddd9e6481c96488f5640f9ed9d988054cfbc37 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sun, 24 Jan 2021 15:08:46 +0000 Subject: [PATCH] Silence the pip version warnings --- cibuildwheel/linux.py | 1 + cibuildwheel/macos.py | 3 +++ cibuildwheel/windows.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index bde5e34f..5d19dbd2 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -94,6 +94,7 @@ def build(options: BuildOptions) -> None: env = docker.get_environment() env['PATH'] = f'/opt/python/cp38-cp38/bin:{env["PATH"]}' + env['PIP_DISABLE_PIP_VERSION_CHECK'] = '1' env = options.environment.as_dictionary(env, executor=docker.environment_executor) before_all_prepared = prepare_command(options.before_all, project=container_project_path, package=container_package_dir) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 3315bd26..dd1a8743 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -195,6 +195,9 @@ def setup_python(python_configuration: PythonConfiguration, env.pop('__PYVENV_LAUNCHER__', None) env = environment.as_dictionary(prev_environment=env) + # we version pip ourselves, so we don't care about pip version checking + env['PIP_DISABLE_PIP_VERSION_CHECK'] = '1' + # check what version we're on call(['which', 'python'], env=env) call(['python', '--version'], env=env) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index 429150eb..45f0141a 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -143,6 +143,8 @@ def setup_python(python_configuration: PythonConfiguration, dependency_constrain str(installation_path / 'Scripts'), env['PATH'] ]) + env['PIP_DISABLE_PIP_VERSION_CHECK'] = '1' + # update env with results from CIBW_ENVIRONMENT env = environment.as_dictionary(prev_environment=env)