fedora-python / pyp2rpm

Tool to convert a package from PyPI to RPM SPECFILE or to generate SRPM.
MIT License
123 stars 39 forks source link

not honouring ~/.rpmmacros #161

Open brianjmurrell opened 6 years ago

brianjmurrell commented 6 years ago

In my ~/.rpmmacros I have:

%_topdir    /home/brian/rpm

but pyp2rpm doesn't seem to be honouring that though:

$ pyp2rpm requests-unixsocket
[Errno 2] No such file or directory: '/home/brian/rpmbuild/SOURCES/requests-unixsocket-0.1.5.tar.gz'

If I work-around that with ln -s ../rpm/SOURCES /home/brian/rpmbuild/ things work better:

$ pyp2rpm requests-unixsocket >/dev/null
irushchyshyn commented 6 years ago

This looks like a duplicate of #117, which should be fixed starting 3.2.3 release.

Can you please let us know which version of pyp2rpm you are using to reproduce this?

brianjmurrell commented 6 years ago

Heh. I know the guy who opened #117. He's good people. :-)

Seriously, I thought I opened a ticket about this before and searched but just could not find it. So yeah, probably duplicate. Or maybe not. Is the solution in #117 specific to the _SAVEDIR (-d)?

In any case, I am using 3.2.3, so maybe #117 is not as general/comprehensive as it needs to be.

irushchyshyn commented 6 years ago

Sorry, my mistake. This fix went into the latest 3.3.0 release. Can you please try updating to 3.3.0 and let me know if it works?