All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/2] *.py: Replace '#!/usr/bin/python3' with '#!/usr/bin/env python3'
Date: Mon, 30 Apr 2018 08:38:06 +0200	[thread overview]
Message-ID: <20180430063806.425k25ch7dr5btka@dell5510> (raw)
In-Reply-To: <20180427140813.GA22462@rei>

Hi Cyril,

> Hi!
> > 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?

> Well if it's causing problems for our users we should go ahead and
> change the shebangs to /usr/bin/env python3.
Simple linking solves that:
# ln -s /usr/local/bin/python3 /usr/bin
And this problem occurs only if you compile python3 from sources (and there are packages for
all major distros, including RHEL 6.9, which Xiao used - in his case it's EPEL repository).

Still want to me to change shebang to '/usr/bin/env python3' ?


Kind regards,
Petr

  reply	other threads:[~2018-04-30  6:38 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
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 [this message]
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=20180430063806.425k25ch7dr5btka@dell5510 \
    --to=pvorel@suse.cz \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.