Author opoplawski
Recipients dstufft, eric.araujo, opoplawski
Date 2016-05-11.19:39:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462995550.58.0.0858558226193.issue27004@psf.upfronthosting.co.za>
In-reply-to
Content
Fedora would like to enforce that python scripts installed into /usr/bin use the "-s" option.  We have tried to enforce this by doing:

python setup.py build --executable '/usr/bin/python2 -s'

However, as reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1335203

this breaks scripts that already have options in them as the options are tacked onto the end, e.g.:

#!/usr/bin/python2 -s -E

Which linux doesn't handle.

It seems we have a couple options:

- Replace the entire shbang line with the argument to --executable
- Try to merge options into a single one (-sE)
- Have a separate option, say --executable-args to specify the options.  Although the question still remains as to whether or not to replace the existing option or append.
History
Date User Action Args
2016-05-11 19:39:10opoplawskisetrecipients: + opoplawski, eric.araujo, dstufft
2016-05-11 19:39:10opoplawskisetmessageid: <1462995550.58.0.0858558226193.issue27004@psf.upfronthosting.co.za>
2016-05-11 19:39:10opoplawskilinkissue27004 messages
2016-05-11 19:39:10opoplawskicreate