2012-05-26 02:45:29 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
if __name__ == '__main__':
|
|
|
|
import sys
|
2015-10-16 22:14:27 +00:00
|
|
|
import pathlib
|
|
|
|
|
|
|
|
executable = pathlib.Path(sys.executable or 'python3').name
|
|
|
|
print('WARNING: the pyenv script is deprecated in favour of '
|
2015-10-27 00:11:04 +00:00
|
|
|
f'`{executable} -m venv`', file=sys.stderr)
|
2015-10-16 22:14:27 +00:00
|
|
|
|
2012-05-26 02:45:29 +00:00
|
|
|
rc = 1
|
|
|
|
try:
|
|
|
|
import venv
|
|
|
|
venv.main()
|
|
|
|
rc = 0
|
|
|
|
except Exception as e:
|
|
|
|
print('Error: %s' % e, file=sys.stderr)
|
|
|
|
sys.exit(rc)
|