comparison tests/test-install.t @ 46604:ad107ed7a4aa

ci: test real dependency installation for pip In the past, the pip smoke test inhibited actual dependency installation, but that fails in different environments for setuptools itself. Since it isn't what we actually want to test (which is pip install), allow this to call home, if HGTESTS_ALLOW_NETIO=1 is set in the environment. Differential Revision: https://phab.mercurial-scm.org/D9950
author Joerg Sonnenberger <joerg@bec.de>
date Thu, 04 Feb 2021 23:23:35 +0100
parents 1b5e0d0bdb05
children fa50f208de73
comparison
equal deleted inserted replaced
46603:1b7c0b10d930 46604:ad107ed7a4aa
182 On Python 2, we use the 3rd party virtualenv module, if available. 182 On Python 2, we use the 3rd party virtualenv module, if available.
183 183
184 $ cd $TESTTMP 184 $ cd $TESTTMP
185 $ unset PYTHONPATH 185 $ unset PYTHONPATH
186 186
187 #if py3 ensurepip 187 #if py3 ensurepip network-io
188 $ "$PYTHON" -m venv installenv >> pip.log 188 $ "$PYTHON" -m venv installenv >> pip.log
189 189
190 Hack: Debian does something a bit different in ensurepip.bootstrap. This makes 190 Hack: Debian does something a bit different in ensurepip.bootstrap. This makes
191 it so that pip thinks the 'wheel' wheel is installed so it can build wheels; 191 it so that pip thinks the 'wheel' wheel is installed so it can build wheels;
192 when it goes to try, however, it shells out to run `python3 -u <setup.py>`, 192 when it goes to try, however, it shells out to run `python3 -u <setup.py>`,
195 our virtual env. Then pip doesn't think it's installed and doesn't try to build. 195 our virtual env. Then pip doesn't think it's installed and doesn't try to build.
196 $ rm installenv/share/python-wheels/wheel-*.whl >/dev/null 2>&1 || true 196 $ rm installenv/share/python-wheels/wheel-*.whl >/dev/null 2>&1 || true
197 197
198 Note: we use this weird path to run pip and hg to avoid platform differences, 198 Note: we use this weird path to run pip and hg to avoid platform differences,
199 since it's bin on most platforms but Scripts on Windows. 199 since it's bin on most platforms but Scripts on Windows.
200 $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log 200 $ ./installenv/*/pip install $TESTDIR/.. >> pip.log
201 Failed building wheel for mercurial (?) 201 Failed building wheel for mercurial (?)
202 WARNING: You are using pip version *; however, version * is available. (glob) (?)
203 You should consider upgrading via the '$TESTTMP/installenv/bin/python* -m pip install --upgrade pip' command. (glob) (?)
202 $ ./installenv/*/hg debuginstall || cat pip.log 204 $ ./installenv/*/hg debuginstall || cat pip.log
203 checking encoding (ascii)... 205 checking encoding (ascii)...
204 checking Python executable (*) (glob) 206 checking Python executable (*) (glob)
205 checking Python implementation (*) (glob) 207 checking Python implementation (*) (glob)
206 checking Python version (3.*) (glob) 208 checking Python version (3.*) (glob)
220 checking commit editor... (*) (glob) 222 checking commit editor... (*) (glob)
221 checking username (test) 223 checking username (test)
222 no problems detected 224 no problems detected
223 #endif 225 #endif
224 226
225 #if virtualenv no-py3 227 #if virtualenv no-py3 network-io
226 228
227 Note: --no-site-packages is the default for all versions enabled by hghave 229 Note: --no-site-packages is the default for all versions enabled by hghave
228 230
229 $ "$PYTHON" -m virtualenv --never-download installenv >> pip.log 231 $ "$PYTHON" -m virtualenv installenv >> pip.log
230 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. (?) 232 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. (?)
231 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support (?) 233 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support (?)
232 234
233 Note: we use this weird path to run pip and hg to avoid platform differences, 235 Note: we use this weird path to run pip and hg to avoid platform differences,
234 since it's bin on most platforms but Scripts on Windows. 236 since it's bin on most platforms but Scripts on Windows.
235 $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log 237 $ ./installenv/*/pip install $TESTDIR/.. >> pip.log
236 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. (?) 238 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. (?)
237 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support (?) 239 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support (?)
238 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. (?) 240 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. (?)
239 $ ./installenv/*/hg debuginstall || cat pip.log 241 $ ./installenv/*/hg debuginstall || cat pip.log
240 checking encoding (ascii)... 242 checking encoding (ascii)...