mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-25427: Remove pyvenv (GH-5962)
This commit is contained in:
parent
61f82e0e33
commit
a8c342465b
9 changed files with 8 additions and 35 deletions
|
|
@ -1,17 +0,0 @@
|
|||
#!/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 '
|
||||
f'`{executable} -m venv`', file=sys.stderr)
|
||||
|
||||
rc = 1
|
||||
try:
|
||||
import venv
|
||||
venv.main()
|
||||
rc = 0
|
||||
except Exception as e:
|
||||
print('Error: %s' % e, file=sys.stderr)
|
||||
sys.exit(rc)
|
||||
Loading…
Add table
Add a link
Reference in a new issue