Message60

Author pjenvey
Recipients pjenvey
Date 2008-07-16.00:33:39
Content
Jython's sys.executable is a shell script on POSIX (and .bat on Windows) and 
thus can't be used as a shebang line interpreter.

The following patch works around this by calling sys.executable via /usr/bin/env 
in shebang lines on platforms where sys.platform.startswith('java') and 
sys.executable's MAGIC is '#!'.

Jython on Windows is a separate issue -- Jython probably has to ship a .exe to 
solve the problem there. This fix doesn't apply to Windows because 
sys.executable's MAGIC is not '#!' there.

Marking as a higher priority because installed scripts on Jython aren't 
executable without this fix

Original distutils-sig discussion: http://www.nabble.com/Shebang-lines-on-
Jython-td16730414.html
Files
File name Uploaded
jython-shebang-fix_r61342.diff pjenvey, 2008-07-16.00:33:39
History
Date User Action Args
2008-07-16 00:33:40pjenveysetmessageid: <1216168420.02.0.0968245543998.issue27@psf.upfronthosting.co.za>
2008-07-16 00:33:40pjenveysetrecipients: + pjenvey
2008-07-16 00:33:39pjenveylinkissue27 messages
2008-07-16 00:33:39pjenveycreate