* [Buildroot] [PATCH] graph-depends: rename pkgutil.py to brpkgutil.py
@ 2017-03-21 8:22 yegorslists at googlemail.com
2017-03-21 21:41 ` Arnout Vandecappelle
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: yegorslists at googlemail.com @ 2017-03-21 8:22 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
pkgutil.py is also part of Python itself. Placing pkgutil.py as is
in a folder with other scripts that require original pkgutil will
break them. This is the case with scanpypi. So rename pkgutil.py
to brpkgutil.py to avoid naming collision.
Fixes: https://bugs.busybox.net/show_bug.cgi?id=9766
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
support/scripts/{pkgutil.py => brpkgutil.py} | 0
support/scripts/graph-depends | 8 ++++----
2 files changed, 4 insertions(+), 4 deletions(-)
rename support/scripts/{pkgutil.py => brpkgutil.py} (100%)
diff --git a/support/scripts/pkgutil.py b/support/scripts/brpkgutil.py
similarity index 100%
rename from support/scripts/pkgutil.py
rename to support/scripts/brpkgutil.py
diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index fbd591705..b258c565b 100755
--- a/support/scripts/graph-depends
+++ b/support/scripts/graph-depends
@@ -26,7 +26,7 @@ import subprocess
import argparse
from fnmatch import fnmatch
-import pkgutil
+import brpkgutil
# Modes of operation:
MODE_FULL = 1 # draw full dependency graph for all selected packages
@@ -102,13 +102,13 @@ else:
transitive = args.transitive
if args.direct:
- get_depends_func = pkgutil.get_depends
+ get_depends_func = brpkgutil.get_depends
arrow_dir = "forward"
else:
if mode == MODE_FULL:
sys.stderr.write("--reverse needs a package\n")
sys.exit(1)
- get_depends_func = pkgutil.get_rdepends
+ get_depends_func = brpkgutil.get_rdepends
arrow_dir = "back"
# Get the colours: we need exactly three colours,
@@ -330,7 +330,7 @@ if check_only:
sys.exit(0)
dict_deps = remove_extra_deps(dict_deps)
-dict_version = pkgutil.get_version([pkg for pkg in allpkgs
+dict_version = brpkgutil.get_version([pkg for pkg in allpkgs
if pkg != "all" and not pkg.startswith("root")])
# Print the attributes of a node: label and fill-color
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] graph-depends: rename pkgutil.py to brpkgutil.py
2017-03-21 8:22 [Buildroot] [PATCH] graph-depends: rename pkgutil.py to brpkgutil.py yegorslists at googlemail.com
@ 2017-03-21 21:41 ` Arnout Vandecappelle
2017-03-21 22:11 ` Thomas Petazzoni
2017-03-30 22:43 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2017-03-21 21:41 UTC (permalink / raw)
To: buildroot
On 21-03-17 09:22, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> pkgutil.py is also part of Python itself. Placing pkgutil.py as is
> in a folder with other scripts that require original pkgutil will
> break them. This is the case with scanpypi. So rename pkgutil.py
> to brpkgutil.py to avoid naming collision.
>
> Fixes: https://bugs.busybox.net/show_bug.cgi?id=9766
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Regards,
Arnout
> ---
> support/scripts/{pkgutil.py => brpkgutil.py} | 0
> support/scripts/graph-depends | 8 ++++----
> 2 files changed, 4 insertions(+), 4 deletions(-)
> rename support/scripts/{pkgutil.py => brpkgutil.py} (100%)
>
> diff --git a/support/scripts/pkgutil.py b/support/scripts/brpkgutil.py
> similarity index 100%
> rename from support/scripts/pkgutil.py
> rename to support/scripts/brpkgutil.py
> diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
> index fbd591705..b258c565b 100755
> --- a/support/scripts/graph-depends
> +++ b/support/scripts/graph-depends
> @@ -26,7 +26,7 @@ import subprocess
> import argparse
> from fnmatch import fnmatch
>
> -import pkgutil
> +import brpkgutil
>
> # Modes of operation:
> MODE_FULL = 1 # draw full dependency graph for all selected packages
> @@ -102,13 +102,13 @@ else:
> transitive = args.transitive
>
> if args.direct:
> - get_depends_func = pkgutil.get_depends
> + get_depends_func = brpkgutil.get_depends
> arrow_dir = "forward"
> else:
> if mode == MODE_FULL:
> sys.stderr.write("--reverse needs a package\n")
> sys.exit(1)
> - get_depends_func = pkgutil.get_rdepends
> + get_depends_func = brpkgutil.get_rdepends
> arrow_dir = "back"
>
> # Get the colours: we need exactly three colours,
> @@ -330,7 +330,7 @@ if check_only:
> sys.exit(0)
>
> dict_deps = remove_extra_deps(dict_deps)
> -dict_version = pkgutil.get_version([pkg for pkg in allpkgs
> +dict_version = brpkgutil.get_version([pkg for pkg in allpkgs
> if pkg != "all" and not pkg.startswith("root")])
>
> # Print the attributes of a node: label and fill-color
>
--
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: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] graph-depends: rename pkgutil.py to brpkgutil.py
2017-03-21 8:22 [Buildroot] [PATCH] graph-depends: rename pkgutil.py to brpkgutil.py yegorslists at googlemail.com
2017-03-21 21:41 ` Arnout Vandecappelle
@ 2017-03-21 22:11 ` Thomas Petazzoni
2017-03-30 22:43 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2017-03-21 22:11 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 21 Mar 2017 09:22:33 +0100, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> pkgutil.py is also part of Python itself. Placing pkgutil.py as is
> in a folder with other scripts that require original pkgutil will
> break them. This is the case with scanpypi. So rename pkgutil.py
> to brpkgutil.py to avoid naming collision.
>
> Fixes: https://bugs.busybox.net/show_bug.cgi?id=9766
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> support/scripts/{pkgutil.py => brpkgutil.py} | 0
> support/scripts/graph-depends | 8 ++++----
> 2 files changed, 4 insertions(+), 4 deletions(-)
> rename support/scripts/{pkgutil.py => brpkgutil.py} (100%)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] graph-depends: rename pkgutil.py to brpkgutil.py
2017-03-21 8:22 [Buildroot] [PATCH] graph-depends: rename pkgutil.py to brpkgutil.py yegorslists at googlemail.com
2017-03-21 21:41 ` Arnout Vandecappelle
2017-03-21 22:11 ` Thomas Petazzoni
@ 2017-03-30 22:43 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2017-03-30 22:43 UTC (permalink / raw)
To: buildroot
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> pkgutil.py is also part of Python itself. Placing pkgutil.py as is
> in a folder with other scripts that require original pkgutil will
> break them. This is the case with scanpypi. So rename pkgutil.py
> to brpkgutil.py to avoid naming collision.
> Fixes: https://bugs.busybox.net/show_bug.cgi?id=9766
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Committed to 2017.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-30 22:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-21 8:22 [Buildroot] [PATCH] graph-depends: rename pkgutil.py to brpkgutil.py yegorslists at googlemail.com
2017-03-21 21:41 ` Arnout Vandecappelle
2017-03-21 22:11 ` Thomas Petazzoni
2017-03-30 22:43 ` Peter Korsgaard
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.