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-25 21:40:31 -03:00
|
|
|
'`{} -m venv`'.format(exeutable), 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)
|