Mercurial > hg
comparison tests/test-install.t @ 46097:1b5e0d0bdb05
hghave: update the check for virtualenv
This started as `hghave --test-features` failing on Windows in `test-hghave.t`.
IDK how this worked, as neither my Linux nor Windows machines have the old
attribute with virtualenv 20.2.2, even on py2. I think this was noticed
recently because 357d8415aa27 mentioned an AttributeError, and mitigated by
making this py2 only. But as mentioned, this is also a problem on py2 (where
the failure was observed).
When I got this working by removing the attribute reference, the command in the
test failed because the `--no-site-package` argument was removed some time ago.
Therefore, this backs out 357d8415aa27 and references a known good attribute
(which was done to suppress the warning about an unused import) that also
ensures the command does not need the argument. Since there appears to be
(minor) broken stuff on py3, manually apply the `no-py3` guard that was backed
out of the check itself.
Differential Revision: https://phab.mercurial-scm.org/D9547
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 08 Dec 2020 12:43:18 -0500 |
parents | d71693f799a0 |
children | ad107ed7a4aa |
comparison
equal
deleted
inserted
replaced
46096:4d5e2fd53707 | 46097:1b5e0d0bdb05 |
---|---|
220 checking commit editor... (*) (glob) | 220 checking commit editor... (*) (glob) |
221 checking username (test) | 221 checking username (test) |
222 no problems detected | 222 no problems detected |
223 #endif | 223 #endif |
224 | 224 |
225 #if py2virtualenv | 225 #if virtualenv no-py3 |
226 | 226 |
227 Note: --no-site-packages is deprecated, but some places have an | 227 Note: --no-site-packages is the default for all versions enabled by hghave |
228 ancient virtualenv from their linux distro or similar and it's not yet | 228 |
229 the default for them. | 229 $ "$PYTHON" -m virtualenv --never-download installenv >> pip.log |
230 | |
231 $ "$PYTHON" -m virtualenv --no-site-packages --never-download installenv >> pip.log | |
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. (?) | 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. (?) |
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 (?) | 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 (?) |
234 | 232 |
235 Note: we use this weird path to run pip and hg to avoid platform differences, | 233 Note: we use this weird path to run pip and hg to avoid platform differences, |
236 since it's bin on most platforms but Scripts on Windows. | 234 since it's bin on most platforms but Scripts on Windows. |
237 $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log | 235 $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log |
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. (?) | 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. (?) |
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 (?) | 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 (?) |
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 $ ./installenv/*/hg debuginstall || cat pip.log | 239 $ ./installenv/*/hg debuginstall || cat pip.log |
241 checking encoding (ascii)... | 240 checking encoding (ascii)... |
242 checking Python executable (*) (glob) | 241 checking Python executable (*) (glob) |
243 checking Python implementation (*) (glob) | 242 checking Python implementation (*) (glob) |
244 checking Python version (2.*) (glob) | 243 checking Python version (2.*) (glob) |