From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements
Date: Fri, 26 Jan 2018 13:43:23 +0100 [thread overview]
Message-ID: <87o9lgiydw.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1516695187-1193-1-git-send-email-yegorslists@googlemail.com> (yegorslists@googlemail.com's message of "Tue, 23 Jan 2018 09:13:07 +0100")
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> Depending on how setup.py reads requirements files empty elements can occur.
> This patch takes care, that such elements will be ignored and don't crash
> the scanpypi script.
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> utils/scanpypi | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> diff --git a/utils/scanpypi b/utils/scanpypi
> index d043135..7392c50 100755
> --- a/utils/scanpypi
> +++ b/utils/scanpypi
> @@ -299,7 +299,9 @@ class BuildrootPackage():
> 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] != '#']
> + print("Req: {}".format(self.pkg_req))
What is this print for? Just debugging? Did you mean to add it?
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2018-01-26 12:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-23 8:13 [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements yegorslists at googlemail.com
2018-01-23 14:27 ` Matthew Weber
2018-01-23 14:31 ` Yegor Yefremov
2018-01-26 12:43 ` Peter Korsgaard [this message]
2018-01-26 12:48 ` Yegor Yefremov
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=87o9lgiydw.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--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