summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-10-16 22:14:27 (GMT)
committerBrett Cannon <brett@python.org>2015-10-16 22:14:27 (GMT)
commit9b63868f77c6782bba6b3ceed8e2058b471b6fd5 (patch)
treec2609f7b873a77a790866dc3de6dd29b3a927801 /Tools
parentc0d91aff9a3b91307b26e8b7c34dfbf27bbdd43a (diff)
downloadcpython-9b63868f77c6782bba6b3ceed8e2058b471b6fd5.zip
cpython-9b63868f77c6782bba6b3ceed8e2058b471b6fd5.tar.gz
cpython-9b63868f77c6782bba6b3ceed8e2058b471b6fd5.tar.bz2
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.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/pyvenv6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/scripts/pyvenv b/Tools/scripts/pyvenv
index 978d691..1043efc 100755
--- a/Tools/scripts/pyvenv
+++ b/Tools/scripts/pyvenv
@@ -1,6 +1,12 @@
#!/usr/bin/env python3
if __name__ == '__main__':
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
try:
import venv