Issue2300
Created on 2015-03-28.18:58:32 by Each, last changed 2015-04-10.01:56:09 by zyasoft.
msg9722 (view) |
Author: Aleksei Kulakov (Each) |
Date: 2015-03-28.18:58:32 |
|
For example:
easy_install --help
shows help for jython instead of easy_install help
|
msg9727 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-03-29.05:35:22 |
|
This is confined to --boot, --help, --jdb, --print, --profile, so basically the special options that are handled in the launcher.
The likely fix is to specialize on the first argument. We need to do so in a robust fashion of course.
I don't believe this has worked in the past either with the old launcher mechanisms, jython.py is a simple and more robust port, especially when compared to jython.bat.
|
msg9731 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-03-29.07:09:06 |
|
I looked into this some more, and it looks more resolvable than I feared. So after decoding args to Unicode (because we need to), we get the following sys.argv on OS X 10.10, with a little instrumentation:
$ dist/bin/yolk --print
[u'/Users/jbaker/jythondev/jython27/dist/bin/jython', u'dist/bin/yolk', u'--print']
Should be the same on Windows. So this means it's not a question of sys.argv[0] - that would be hard to get right - but instead doing a standard delegation of option args to sys.argv[1]
So we should be able to fix for RC2
|
msg9746 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-04-01.19:21:28 |
|
Fixed as of https://hg.python.org/jython/rev/2a4d36522fa6
|
|
Date |
User |
Action |
Args |
2015-04-10 01:56:09 | zyasoft | set | status: pending -> closed |
2015-04-01 19:21:28 | zyasoft | set | status: open -> pending assignee: zyasoft resolution: accepted -> fixed messages:
+ msg9746 title: [windows] bin\*.exe launcher options swallowed by jython -> jython.py/jython.exe launcher swallows options for subcommand |
2015-03-29 07:09:06 | zyasoft | set | priority: urgent resolution: accepted messages:
+ msg9731 |
2015-03-29 05:35:22 | zyasoft | set | nosy:
+ zyasoft messages:
+ msg9727 |
2015-03-28 18:58:32 | Each | create | |
|