Message10073

Author lvjp
Recipients joshfriend, lvjp, zyasoft
Date 2015-05-21.15:21:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432221685.67.0.655298946459.issue2350@psf.upfronthosting.co.za>
In-reply-to
Content
We can see that in JarInstaller.java on line 179 that the installer change current directory to path/to/install/bin before execute path/to/install/bin/jython.

If we go under path/to/instal/bin just run directly jyhon is sufficient.

https://hg.python.org/jython/file/77e0e7c87bd1/installer/src/java/org/python/util/install/JarInstaller.java#l179

The source:
String launcher = bindir.resolve("jython").toString();
String command[] = new String[]{ launcher, "-m", "ensurepip"};
ChildProcess childProcess = new ChildProcess(command);
childProcess.setCWD(bindir);
errorCode = childProcess.run();

I suggest to make command like that:
String command[] = new String[] { "jython", "-m", "ensurepip" };
History
Date User Action Args
2015-05-21 15:21:25lvjpsetmessageid: <1432221685.67.0.655298946459.issue2350@psf.upfronthosting.co.za>
2015-05-21 15:21:25lvjpsetrecipients: + lvjp, zyasoft, joshfriend
2015-05-21 15:21:25lvjplinkissue2350 messages
2015-05-21 15:21:25lvjpcreate