Show More
@@ -236,20 +236,53 b' Verify the json works too:' | |||||
236 |
|
236 | |||
237 | #endif |
|
237 | #endif | |
238 |
|
238 | |||
239 | #if virtualenv |
|
|||
240 |
|
||||
241 | Verify that Mercurial is installable with pip. Note that this MUST be |
|
239 | Verify that Mercurial is installable with pip. Note that this MUST be | |
242 | the last test in this file, because we do some nasty things to the |
|
240 | the last test in this file, because we do some nasty things to the | |
243 | shell environment in order to make the virtualenv work reliably. |
|
241 | shell environment in order to make the virtualenv work reliably. | |
244 |
|
242 | |||
|
243 | On Python 3, we use the venv module, which is part of the standard library. | |||
|
244 | On Python 2, we use the 3rd party virtualenv module, if available. | |||
|
245 | ||||
245 | $ cd $TESTTMP |
|
246 | $ cd $TESTTMP | |
|
247 | $ unset PYTHONPATH | |||
|
248 | ||||
|
249 | #if py3 | |||
|
250 | $ "$PYTHON" -m venv installenv >> pip.log | |||
|
251 | ||||
|
252 | Note: we use this weird path to run pip and hg to avoid platform differences, | |||
|
253 | since it's bin on most platforms but Scripts on Windows. | |||
|
254 | $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log | |||
|
255 | $ ./installenv/*/hg debuginstall || cat pip.log | |||
|
256 | checking encoding (ascii)... | |||
|
257 | checking Python executable (*) (glob) | |||
|
258 | checking Python version (3.*) (glob) | |||
|
259 | checking Python lib (*)... (glob) | |||
|
260 | checking Python security support (*) (glob) | |||
|
261 | checking Mercurial version (*) (glob) | |||
|
262 | checking Mercurial custom build (*) (glob) | |||
|
263 | checking module policy (*) (glob) | |||
|
264 | checking installed modules (*/mercurial)... (glob) | |||
|
265 | checking registered compression engines (*) (glob) | |||
|
266 | checking available compression engines (*) (glob) | |||
|
267 | checking available compression engines for wire protocol (*) (glob) | |||
|
268 | checking "re2" regexp engine \((available|missing)\) (re) | |||
|
269 | checking templates ($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob) | |||
|
270 | checking default template ($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default) (glob) | |||
|
271 | checking commit editor... (*) (glob) | |||
|
272 | checking username (test) | |||
|
273 | no problems detected | |||
|
274 | #endif | |||
|
275 | ||||
|
276 | #if no-py3 virtualenv | |||
|
277 | ||||
246 | Note: --no-site-packages is deprecated, but some places have an |
|
278 | Note: --no-site-packages is deprecated, but some places have an | |
247 |
|
|
279 | ancient virtualenv from their linux distro or similar and it's not yet | |
248 | the default for them. |
|
280 | the default for them. | |
249 | $ unset PYTHONPATH |
|
281 | ||
250 | $ "$PYTHON" -m virtualenv --no-site-packages --never-download installenv >> pip.log |
|
282 | $ "$PYTHON" -m virtualenv --no-site-packages --never-download installenv >> pip.log | |
251 |
DEPRECATION: |
|
283 | 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. (?) | |
252 |
DEPRECATION: Python 2.7 |
|
284 | 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 (?) | |
|
285 | ||||
253 | Note: we use this weird path to run pip and hg to avoid platform differences, |
|
286 | Note: we use this weird path to run pip and hg to avoid platform differences, | |
254 | since it's bin on most platforms but Scripts on Windows. |
|
287 | since it's bin on most platforms but Scripts on Windows. | |
255 | $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log |
|
288 | $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log | |
@@ -258,8 +291,7 b" since it's bin on most platforms but Scr" | |||||
258 | $ ./installenv/*/hg debuginstall || cat pip.log |
|
291 | $ ./installenv/*/hg debuginstall || cat pip.log | |
259 | checking encoding (ascii)... |
|
292 | checking encoding (ascii)... | |
260 | checking Python executable (*) (glob) |
|
293 | checking Python executable (*) (glob) | |
261 |
checking Python version (2.*) (glob) |
|
294 | checking Python version (2.*) (glob) | |
262 | checking Python version (3.*) (glob) (py3 !) |
|
|||
263 | checking Python lib (*)... (glob) |
|
295 | checking Python lib (*)... (glob) | |
264 | checking Python security support (*) (glob) |
|
296 | checking Python security support (*) (glob) | |
265 | TLS 1.2 not supported by Python install; network connections lack modern security (?) |
|
297 | TLS 1.2 not supported by Python install; network connections lack modern security (?) |
General Comments 0
You need to be logged in to leave comments.
Login now