From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 13321] New: utils/scanpypi: fails with packages that define a package’s metadata in setup.cfg
Date: Wed, 18 Nov 2020 19:02:24 +0000 [thread overview]
Message-ID: <bug-13321-163@https.bugs.busybox.net/> (raw)
https://bugs.busybox.net/show_bug.cgi?id=13321
Bug ID: 13321
Summary: utils/scanpypi: fails with packages that define a
package?s metadata in setup.cfg
Product: buildroot
Version: 2020.08.2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: bartosz.bilas at hotmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
There is a couple(or more than couple) of packages on PyPi that doesn't work
with the scanpypi script (for example wheel/importlib_resources). The reason of
that is that it uses setup.cfg in conjunction with setup.py to package metadata
configuration. Use of scanpypi on these packages fails with the following
errors:
utils/scanpypi:23: DeprecationWarning: the imp module is deprecated in favour
of importlib; see the module's documentation for alternative uses
import imp
spdx_lookup module is not installed. This can lead to an inaccurate licence
detection. Please install it via
pip install spdx_lookup
buildroot package name for wheel: python-wheel
Package: python-wheel
Fetching package wheel
Downloading package wheel from
https://files.pythonhosted.org/packages/83/72/611c121b6bd15479cb62f1a425b2e3372e121b324228df28e64cc28b01c2/wheel-0.35.1.tar.gz...
Traceback (most recent call last):
File "utils/scanpypi", line 754, in <module>
main()
File "utils/scanpypi", line 702, in main
package.load_setup()
File "utils/scanpypi", line 302, in load_setup
setup = imp.load_module('setup', s_file, s_path, s_desc)
File "/usr/lib/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/scanpypi-evf4l461/python-wheel/wheel-0.35.1/setup.py", line 4, in
<module>
File "utils/scanpypi", line 63, in closure
BuildrootPackage.setup_args[kwargs['name']] = kwargs
KeyError: 'name'
To reproduce just type:
utils/scanpypi wheel
--
You are receiving this mail because:
You are on the CC list for the bug.
next reply other threads:[~2020-11-18 19:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 19:02 bugzilla at busybox.net [this message]
2020-11-23 3:17 ` [Buildroot] [Bug 13321] utils/scanpypi: fails with packages that define a package’s metadata in setup.cfg bugzilla at busybox.net
2021-01-15 14:00 ` bugzilla at busybox.net
2021-11-06 11:04 ` bugzilla
2024-06-15 14:55 ` bugzilla
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=bug-13321-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--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 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.