summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2008-11-11 16:46:20 -0600
committerPhilip Jenvey <pjenvey@underboss.org>2008-11-11 16:46:20 -0600
commit0bbbf0939437ef1fac2c98e9472091cea7e6d7d9 (patch)
tree97f783ef93229d1d6a3f6a7d9c48f5e3d93e0193
parent112c63d905e8c8fce642fd60654d0ed463495ef0 (diff)
downloadvirtualenv-0bbbf0939437ef1fac2c98e9472091cea7e6d7d9.tar.gz
[svn r3651] fix handling of Jython environments that use a jython-complete.jar
-rw-r--r--docs/index.txt3
-rwxr-xr-xvirtualenv.py8
2 files changed, 9 insertions, 2 deletions
diff --git a/docs/index.txt b/docs/index.txt
index 121797a..05fa91d 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -322,6 +322,9 @@ svn trunk
* Sometimes Cygwin seems to leave ``.exe`` off ``sys.executable``; a
workaround is added.
+* Fixed handling of Jython environments that use a
+ jython-complete.jar.
+
1.3
~~~
diff --git a/virtualenv.py b/virtualenv.py
index 5b992cf..91aa598 100755
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -556,8 +556,12 @@ def create_environment(home_dir, site_packages=True, clear=False,
copyfile(join(exec_dir, fn), join(lib_dir, fn))
if is_jython:
- for name in 'jython.jar', 'javalib':
- copyfile(join(prefix, name), join(home_dir, name))
+ # Jython has either jython.jar and javalib/ dir, or just
+ # jython-complete.jar
+ for name in 'jython.jar', 'javalib', 'jython-complete.jar':
+ src = join(prefix, name)
+ if os.path.exists(src):
+ copyfile(src, join(home_dir, name))
copyfile(join(prefix, 'cachedir'), join(home_dir, 'cachedir'),
symlink=False)