bpo-25427: Remove pyvenv (GH-5962)

This commit is contained in:
Brett Cannon 2018-04-20 14:15:40 -07:00 committed by GitHub
parent 61f82e0e33
commit a8c342465b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 8 additions and 35 deletions

View file

@ -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)