public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Xiao Yang <yangx.jy@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/2] *.py: Replace '#!/usr/bin/python3' with '#!/usr/bin/env python3'
Date: Thu, 26 Apr 2018 16:39:04 +0800	[thread overview]
Message-ID: <5AE19028.6050804@cn.fujitsu.com> (raw)
In-Reply-To: <20180426081639.GB4482@x230>

On 2018/04/26 16:16, Petr Vorel wrote:
> Hi Xiao,
>
>>> On 2018/04/26 14:45, Xiao Yang wrote:
>>>> If we install python3 in specific path(/usr/local/bin) rather than the
>>>> default(/usr/bin), the standard shebang(#!/usr/bin/python3) cannot
>>>> interpreter python code due to wrong path.  We should use env to
>>>> search the correct path of python3 dynamically.
>>> ----------------------------------------------------------------------------
>>> # which python3
>>> /usr/local/bin/python3
>>> # ./in.py
>>> -bash: ./in.py: /usr/bin/python3: bad interpreter: No such file or directory
>>> ----------------------------------------------------------------------------
> And is it really general RHEL6.9GA problem? Isn't it installable into standard path with
> EPEL? [1]
Hi Petr,

Neither, i just install python3 into /usr/local/bin by Python-3.6.5.tgz on purpose.  :-P

Thanks,
Xiao Yang

>> Couldn't it be solved by simple creating manually symlink python3 to /usr/bin ?
>> I'm not against changing schebang to using env, if causing troubles.
>> Cyril, what do you think?
>> It's funny that some distros already started removing python2 while still supported
>> versions haven't properly added python3 yet :(.
>>> Thanks,
>>> Xiao Yang
>
> Kind regards,
> Petr
>
> [1] https://unix.stackexchange.com/questions/343199/how-to-install-openvpn-client-on-rhel-7-3/343214#343214
>
>
> .
>




  reply	other threads:[~2018-04-26  8:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26  6:45 [LTP] [PATCH 1/2] *.py: Replace '#!/usr/bin/python3' with '#!/usr/bin/env python3' Xiao Yang
2018-04-26  6:45 ` [LTP] [PATCH 2/2] commands/file01: Fix "python3" match failure Xiao Yang
2018-04-26 12:15   ` Petr Vorel
2018-04-26  7:03 ` [LTP] [PATCH 1/2] *.py: Replace '#!/usr/bin/python3' with '#!/usr/bin/env python3' Xiao Yang
2018-04-26  8:06   ` Petr Vorel
2018-04-26  8:15     ` Xiao Yang
2018-04-26  8:16     ` Petr Vorel
2018-04-26  8:39       ` Xiao Yang [this message]
2018-04-26 10:54         ` Petr Vorel
2018-04-27  1:31           ` Xiao Yang
2018-04-27 14:08     ` Cyril Hrubis
2018-04-30  6:38       ` Petr Vorel
2018-05-02 15:37         ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5AE19028.6050804@cn.fujitsu.com \
    --to=yangx.jy@cn.fujitsu.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox