You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
449 B
Groff
18 lines
449 B
Groff
3 weeks ago
|
#!/usr/local/python3/bin/python3.7
|
||
|
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)
|