mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Implemented PEP 405 (Python virtual environments).
This commit is contained in:
parent
f2bdc3690a
commit
7ded1f0f69
41 changed files with 1454 additions and 66 deletions
|
@ -1122,6 +1122,7 @@ def add_files(db):
|
|||
lib.add_file("2to3.py", src="2to3")
|
||||
lib.add_file("pydoc3.py", src="pydoc3")
|
||||
lib.add_file("pysetup3.py", src="pysetup3")
|
||||
lib.add_file("pyvenv.py", src="pyvenv")
|
||||
if have_tcl:
|
||||
lib.start_component("pydocgui.pyw", tcltk, keyfile="pydocgui.pyw")
|
||||
lib.add_file("pydocgui.pyw")
|
||||
|
|
11
Tools/scripts/pyvenv
Executable file
11
Tools/scripts/pyvenv
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
rc = 1
|
||||
try:
|
||||
import venv
|
||||
venv.main()
|
||||
rc = 0
|
||||
except Exception as e:
|
||||
print('Error: %s' % e, file=sys.stderr)
|
||||
sys.exit(rc)
|
Loading…
Add table
Add a link
Reference in a new issue