mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #25154: Deprecate the pyvenv script.
This was done so as to move users to `python3 -m venv` which prevents confusion over which Python interpreter will be used in the virtual environment when more than one is installed.
This commit is contained in:
parent
c0d91aff9a
commit
9b63868f77
3 changed files with 16 additions and 1 deletions
|
@ -197,7 +197,10 @@ Deprecated functions and types of the C API
|
||||||
Deprecated features
|
Deprecated features
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
* None yet.
|
* The ``pyvenv`` script has been deprecated in favour of ``python3 -m venv``.
|
||||||
|
This prevents confusion as to what Python interpreter ``pyvenv`` is
|
||||||
|
connected to and thus what Python interpreter will be used by the virtual
|
||||||
|
environment. See :issue:`25154`.
|
||||||
|
|
||||||
|
|
||||||
Removed
|
Removed
|
||||||
|
|
|
@ -289,6 +289,12 @@ Windows
|
||||||
|
|
||||||
- Issue #25022: Removed very outdated PC/example_nt/ directory.
|
- Issue #25022: Removed very outdated PC/example_nt/ directory.
|
||||||
|
|
||||||
|
Tools/Demos
|
||||||
|
-----------
|
||||||
|
|
||||||
|
- Issue #25154: The pyvenv script has been deprecated in favour of
|
||||||
|
`python3 -m venv`.
|
||||||
|
|
||||||
|
|
||||||
What's New in Python 3.5.1 release candidate 1?
|
What's New in Python 3.5.1 release candidate 1?
|
||||||
===============================================
|
===============================================
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
|
import pathlib
|
||||||
|
|
||||||
|
executable = pathlib.Path(sys.executable or 'python3').name
|
||||||
|
print('WARNING: the pyenv script is deprecated in favour of '
|
||||||
|
'`{} -m venv`'.format(exeutable, file=sys.stderr))
|
||||||
|
|
||||||
rc = 1
|
rc = 1
|
||||||
try:
|
try:
|
||||||
import venv
|
import venv
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue