Silence the pip version warnings

This commit is contained in:
Joe Rickerby
2021-01-24 15:08:46 +00:00
parent 00eed5aac5
commit 4dddd9e648
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -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)