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

sys.executable should be set when jython is run for the proper functioning of
(at very least least) distutils.

This is done via the -Dpython.executable system property:
http://article.gmane.org/gmane.comp.lang.jython.devel/4068

Once I set the property in /usr/bin/jython, I was able to install packages
via "jython setup.py install" and run them with "jython -m <module name>",
like a normal python package.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages jython depends on:
ii  antlr3                    3.2-3          language tool for constructing rec
ii  libasm3-java              3.2-3          Java bytecode manipulation framewo
ii  libconstantine-java       0.7-1          platform constants for Java
ii  libjline-java             0.9.94-5       Java library for handling console 
ii  libjna-java               3.2.4-2        Dynamic access of native libraries
ii  libjna-posix-java         1.0.1-1        basic POSIX-like functions for Jav
ii  libreadline-java          0.8.0.1+dfsg-2 GNU readline and BSD editline wrap
ii  libxerces2-java           2.9.1-4.1      Validating XML parser for Java wit
ii  openjdk-6-jre-headless [j 6b18-1.8-1     OpenJDK Java runtime, using Hotspo
ii  perl                      5.10.1-13      Larry Wall's Practical Extraction 

Versions of packages jython recommends:
ii  openjdk-6-jdk [java-compiler] 6b18-1.8-1 OpenJDK Development Kit (JDK)

Versions of packages jython suggests:
pn  jython-doc                    <none>     (no description available)
pn  libmysql-java                 <none>     (no description available)
ii  libpg-java                    8.4-701-1  Java database (JDBC) driver for Po
ii  libservlet2.5-java            6.0.28-1   Servlet 2.5 and JSP 2.1 Java API c

-- no debconf information
diff -ur jython-2.5.1/debian/jython_perl jython-2.5.1-patched/debian/jython_perl
--- jython-2.5.1/debian/jython_perl	2010-08-03 11:54:37.000000000 -0100
+++ jython-2.5.1-patched/debian/jython_perl	2010-08-03 12:15:00.909045360 -0100
@@ -136,6 +136,7 @@
 push @fullCommandLine, "-Dpython.console.readlinelib=Editline";
 $ENV{CALLED_FROM_JYTHONC} and
 	push @fullCommandLine, "-Dpython.jythonc.compiler=$ENV{JAVAC}";
+push @fullCommandLine, "-Dpython.executable=$0";
 push @fullCommandLine, 'org.python.util.jython';
 push @fullCommandLine, @jythonArgs;
 $ENV{JYTHON_WRAPPER_DEBUG} and print "$env{classpath}\...@fullcommandline\n\n";

Reply via email to