c2ebc9d26e
It creates an environment that has its own installation directories, that doesn't share libraries with other virtualenv environments (and optionally doesn't use the globally installed libraries either). Usage: virtualenv YOUR_NEW_PYTHON_ENV WWW: http://pypi.python.org/pypi/virtualenv
12 lines
528 B
Python
12 lines
528 B
Python
--- virtualenv.py 2007-10-10 16:27:32.000000000 +0200
|
|
+++ virtualenv.py.port 2008-01-06 13:42:54.000000000 +0100
|
|
@@ -464,6 +464,9 @@
|
|
if sys.executable != py_executable:
|
|
## FIXME: could I just hard link?
|
|
shutil.copyfile(sys.executable, py_executable)
|
|
+ if not py_executable.endswith('/python'):
|
|
+ py_link = os.path.join(os.path.dirname(py_executable), 'python')
|
|
+ os.symlink(os.path.basename(py_executable), py_link)
|
|
make_exe(py_executable)
|
|
|
|
if 'Python.framework' in sys.prefix:
|