Mailinglist Archive: opensuse-packaging (116 mails)

< Previous Next >
Re: [opensuse-packaging] Proper way to set shebangs in singlespecs
For executables: Replace the /usr/bin/env with /usr/bin/python2/3 using
e.g. sed:

sed -i '1s/^#!.*/#!\/usr\/bin\/python3/'

For doumentation/example files: remove the shebangs and the executable bit.


On 12/21/2017 03:47 AM, Luciano Santos wrote:
Hi openSUSE hackers,
I have been looking for a way to properly set the right shebang in a python
singlespec package. But without any lucky so far. The naughty package in
question is python-gobject:

I did some try and error with %ifpython macro, which seems to be the usual
way to make this right, but after toasting some kittens I stopped and
realized this is not working.
Have someone cross this path before? If someone have succeeded in such quest
and could shed some light on this one for my curiosity's sake and the
package's health as well, of course, I would be grateful.

Looking forward for your thoughts,

python programming - mail server - photo - video -
cryptographic key at and on public keyservers

< Previous Next >
Follow Ups