support: graph-depends requires Python 2
PATCH 1/1 support: graph-depends requires Python 2
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.
Let's specify it in the graph-depends script to make it clear that it requires the version 2 of Python to work.
--- support/scripts/graph-depends | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
support/scripts/graph-depends +1 -1
@@ -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
Signature · 1 line
2.0.0
PATCH 1/1 support: graph-depends requires Python 2
Quoted 3 lines · Vivien Didelot
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
Quoted 20 lines
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 <[email protected]>--- support/scripts/graph-depends | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)support/scripts/graph-depends +1
-1@@ -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
Signature · 6 lines
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