From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] support: graph-depends requires Python 2
Date: Fri, 20 Jun 2014 22:33:59 +0200 [thread overview]
Message-ID: <53A49AB7.2080508@mind.be> (raw)
In-Reply-To: <1403206215-5562-1-git-send-email-vivien.didelot@savoirfairelinux.com>
On 19/06/14 21:30, Vivien Didelot wrote:
> Python 3 becomes the default version on some distributions (such as
> Archlinux), while they all (Debian, Ubuntu, Arch, Fedora, etc.) define a
> python2 symlink for consistency.
Is that also true for old RHEL? Those beasts offer 10 years of support so you
get really really old ones out there...
It would be better to just make the script python3-compliant. Probably just a
matter of adding brackets around the print statements -- patch follows.
Regards,
Arnout
>
> Let's specify it in the graph-depends script to make it clear that it
> requires the version 2 of Python to work.
>
> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
> ---
> support/scripts/graph-depends | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
> index e2a5e1e..e323e3f 100755
> --- a/support/scripts/graph-depends
> +++ b/support/scripts/graph-depends
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/python2
>
> # Usage (the graphviz package must be installed in your distribution)
> # ./support/scripts/graph-depends [-p package-name] > test.dot
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
prev parent reply other threads:[~2014-06-20 20:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 19:30 [Buildroot] [PATCH] support: graph-depends requires Python 2 Vivien Didelot
2014-06-20 20:33 ` Arnout Vandecappelle [this message]
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=53A49AB7.2080508@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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