* [Buildroot] [PATCH] scanpypi: get rid of commented lines and also strip the package strings
@ 2018-01-18 10:41 yegorslists at googlemail.com
2018-01-18 21:11 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: yegorslists at googlemail.com @ 2018-01-18 10:41 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
utils/scanpypi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/utils/scanpypi b/utils/scanpypi
index 765bfdc..88fcb4a 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -293,6 +293,10 @@ class BuildrootPackage():
self.pkg_req = self.setup_metadata['install_requires']
self.pkg_req = [re.sub('([-.\w]+).*', r'\1', req)
for req in self.pkg_req]
+
+ # get rid of commented lines and also strip the package strings
+ self.pkg_req = [item.strip() for item in self.pkg_req if item[0] != '#']
+
req_not_found = self.pkg_req
self.pkg_req = map(pkg_buildroot_name, self.pkg_req)
pkg_tuples = zip(req_not_found, self.pkg_req)
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] scanpypi: get rid of commented lines and also strip the package strings
2018-01-18 10:41 [Buildroot] [PATCH] scanpypi: get rid of commented lines and also strip the package strings yegorslists at googlemail.com
@ 2018-01-18 21:11 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-01-18 21:11 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 18 Jan 2018 11:41:49 +0100, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> utils/scanpypi | 4 ++++
> 1 file changed, 4 insertions(+)
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] 2+ messages in thread
end of thread, other threads:[~2018-01-18 21:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-18 10:41 [Buildroot] [PATCH] scanpypi: get rid of commented lines and also strip the package strings yegorslists at googlemail.com
2018-01-18 21:11 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox