Package: jython
Version: 2.5.2-1
Severity: normal
Tags: patch

The perl script used to start the Jython interpreter does not work with
virtualenv:

python2.7 virtualenv-1.9.1/virtualenv.py --python=jython .venv/jy25
Running virtualenv with interpreter /usr/bin/jython
Cannot find file /usr/share/jython/Include (bad symlink)
Cannot find file /usr/share/jython/cachedir (bad symlink)
New jython executable in .venv/jy25/bin/jython
ERROR: The executable .venv/jy25/bin/jython is not functioning
ERROR: It thinks sys.prefix is u'/usr/share/jython' (should be 
u'<snip>/.venv/jy25')
ERROR: virtualenv is not compatible with this system or executable

One possible solution is as follows:

--- /usr/bin/jython     2012-05-08 10:50:08.000000000 +0100
+++ /tmp/jython 2013-04-10 16:37:35.000000000 +0100
@@ -6,11 +6,12 @@
 # Released under the GPL.

 use strict;
+use File::Basename;
 use Text::ParseWords;

 # Debian constants.
 #
-my $jythonHome = '/usr/share/jython';
+my $jythonHome = dirname(dirname($0));
 my $debianJNIDir = '/usr/lib/jni';
 my $defaultRuntime = '/usr/bin/java';

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages jython depends on:
ii  antlr3                                           3.2-7
ii  default-jre-headless [java5-runtime-headless]    1:1.6-47
ii  libasm3-java                                     3.3.2-1
ii  libconstantine-java                              0.7-3
ii  libguava-java                                    11.0.2-1
ii  libjffi-java                                     1.0.2-9
ii  libjline-java                                    1.0-2
ii  libjnr-netdb-java                                1.0.3-2
ii  libjnr-posix-java                                1.1.4~git1.8aa26268b-1
ii  libjnr-x86asm-java                               0.1-1
ii  liblivetribe-jsr223-java                         2.0.6-1
ii  libreadline-java                                 0.8.0.1+dfsg-2+b1
ii  openjdk-6-jre-headless [java5-runtime-headless]  6b27-1.12.4-1
ii  perl                                             5.14.2-20

Versions of packages jython recommends:
ii  default-jdk                    1:1.6-47
ii  openjdk-6-jdk [java-compiler]  6b27-1.12.4-1

Versions of packages jython suggests:
pn  jython-doc               <none>
pn  libmysql-java            <none>
pn  libpostgresql-jdbc-java  <none>
pn  libservlet2.5-java       <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to