Closed QuLogic closed 6 years ago
Maybe related to the fact there are no source packages on PyPI? See takluyver/entrypoints#5.
Wow, that one is quite different, so even if it works trough this, it will find no setup.py etc. I wonder if this should be fixed, and if so then how. Maybe a proper solution would be just to produce a nicer error?
Tarball is not present so pyp2rpm tries to extract metadata from wheel. There is also something wrong with the wheel. I've downloaded it mannualy and tried to unpack it, this was the result:
$ wheel unpack entrypoints-0.1-py2.py3-none-any.whl
Unpacking to: ./entrypoints-0.1
Traceback (most recent call last):
File "/usr/bin/wheel", line 11, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/wheel/tool/__init__.py", line 358, in main
args.func(args)
File "/usr/lib/python2.7/site-packages/wheel/tool/__init__.py", line 292, in unpack_f
unpack(args.wheelfile, args.dest)
File "/usr/lib/python2.7/site-packages/wheel/tool/__init__.py", line 138, in unpack
wf.zipfile.extractall(destination)
File "/usr/lib64/python2.7/zipfile.py", line 1040, in extractall
self.extract(zipinfo, path, pwd)
File "/usr/lib64/python2.7/zipfile.py", line 1028, in extract
return self._extract_member(member, path, pwd)
File "/usr/lib64/python2.7/zipfile.py", line 1082, in _extract_member
with self.open(member, pwd=pwd) as source, \
File "/usr/lib/python2.7/site-packages/wheel/install.py", line 466, in open
raise BadWheelFile("No expected hash for file %r" % ef.name)
wheel.install.BadWheelFile: No expected hash for file 'entrypoints.py'
That unpacking seems to work fine to the latest entrypoints-0.2.2-py2.py3-none-any.whl
.
Also, I see no mention of the searched-for metadata.json
or pydist.json
in the Wheel spec.
Nicer error in case of missing sources was implemented in ada77670, closing this.
Trying to run
pyp2rpm entrypoints
fails with the following traceback:Using pyp2rpm 3.0.2 in Fedora 23.