Closed shlomif closed 7 years ago
Hello, thanks for reporting this. DandifiedNameConvertor relies on DNF repositories queries to find most possibly the correct name of dependencies. I removed the check of distro in DandifiedNameConvertor's init method, so the only requirement to use it is presence of dnf module.
Can you please test if this helped you?
@mcyprian : thanks! It did seem to help and now I can prepare an .src.rpm . However, rpmbuild --rebuild
of it fails:
shlomif[rpms]:$base$ rpmbuild --rebuild python3-zenfilter-0.1a0-1.mga6.src.rpm Installing python3-zenfilter-0.1a0-1.mga6.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6nYMO4
+ umask 022
+ cd /home/shlomif/progs/Rpms/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/shlomif/progs/Rpms/BUILD
+ rm -rf Zenfilter-0.1a0
+ /usr/bin/unzip -qq /home/shlomif/progs/Rpms/SOURCES/Zenfilter-0.1a0-py3-none-any.whl
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Zenfilter-0.1a0
/var/tmp/rpm-tmp.6nYMO4: line 39: cd: Zenfilter-0.1a0: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.6nYMO4 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.6nYMO4 (%prep)
shlomif[rpms]:$base$
It seems the sources of Zenfilter are missing on PyPI. Wheel can be used to get limited package metadata, but you need source tarball to build RPM. I am afraid pyp2rpm can't do much better job here, we should probably end with an error or warning in case neither tar* nor zip is present.
@mcyprian : thanks for the comment.
On Tue, 04 Apr 2017 06:50:53 -0700 Michal Cyprian notifications@github.com wrote:
Closed #104 via 8389e5d2dd2004f3b572fae91234890a3f88a85d.
Thanks!
Shlomi Fish http://www.shlomifish.org/ List of Text Editors and IDEs - http://shlom.in/IDEs
Chuck Norris knows what the gender of Great A’Tuin, the Discworld world turtle, is. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Hi!
When I run pyp2rpm 3.2.2 on Mageia with the
-t mageia
flag, I am getting this:Please look into fixing it.