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