[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-packaging
Subject:    Re: [opensuse-packaging] Python scripts and rpmlint
From:       Peter Simons <psimons () suse ! de>
Date:       2017-10-17 19:01:17
Message-ID: 87376hfvk2.fsf () write-only ! cryp ! to
[Download RAW message or body]

Todd Rme writes:

 > executable scripts with "/usr/bin/env" cause an error

This is a rather surprising proposition considering that

  #! /usr/bin/env python3

is the only portable choice for calling "python3". Not everything is
installed in /usr/bin, and even if there is a /usr/bin/python, then it's
not necessarily the interpreter the users wants to be used. If such a
system-path is hard-coded into the script, then it's a lot more
difficult to re-use it in other contexts. Relying on whatever is in
$PATH, however, gives users control over what is going on, so I very
much prefer that as a default choice.

Best regards,
Peter
-- 
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic