On 10/23/2020 11:01 AM, Ken Moffat wrote:
Is there an official python recommendation for that, to quote at
them, please ?

To bring this all back around, here is a link to the discussion I inadvertently mentioned off-list to Ken:

https://github.com/python/peps/pull/893 - which ultimately led to the changes noted below.

And here is the actual PEP 39*4*:

https://www.python.org/dev/peps/pep-0394/

Pay attention to each of the three targets in the section titled "Recommendation"  but for the purposes of this question, the recommendation for script publishers is what is important and these bullet points specifically:

 * In cases where the script is expected to be executed outside virtual
   environments, developers will need to be aware of the following
   discrepancies across platforms and installation methods:
     o Older Linux distributions will provide apythoncommand that
       refers to Python 2, and will likely not provide apython2command.
     o Some newer Linux distributions will provide apythoncommand that
       refers to Python 3.
     o Some Linux distributions will not provide apythoncommand at all
       by default, but will provide apython3command by default.
 * When potentially targeting these environments, developers may either
   use a Python package installation tool that rewrites shebang lines
   for the installed environment, provide instructions on updating
   shebang lines interactively, or else use more specific shebang lines
   that are tailored to the target environment.

--DJ




-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to