Hi,
I am trying to build PyVISA (https://pyvisa.readthedocs.io/en/latest/) using mock and the problem is, during the build it is looking for "/builddir/build/BUILDROOT/python-pyvisa-1.10.0-1.fc30.x86_64/usr/lib/python3.7/site-packages/pyvisa-1.10.0-py?.?.egg-info". But the real name if the directory is"/builddir/build/BUILDROOT/python-pyvisa-1.10.0-1.fc30.x86_64/usr/lib/python3.7/site-packages/PyVISA-1.10.0-py?.?.egg-info". So I think the developer was not aware of case sensitive systems.
I tried to modify the specfile but with no different result. So original specfile was created using pyp2rpm.
Besides PyVISA, I had this problem on some other python packages, too, so is there a way out of that except patching and rewriting stuff of the original python package? It seems to me like a common problem. I found [1] and pyvisa is mentioned there, but the problem seems to be the same (regardless to say I wonder how that guy there built this RPM of PyVISA).
Best Regards
Christopher
On 16. 10. 19 19:57, Christopher Beck wrote:
Hi,
I am trying to build PyVISA (https://pyvisa.readthedocs.io/en/latest/) using mock and the problem is, during the build it is looking for "/builddir/build/BUILDROOT/python-pyvisa-1.10.0-1.fc30.x86_64/usr/lib/python3.7/site-packages/pyvisa-1.10.0-py?.?.egg-info". But the real name if the directory is"/builddir/build/BUILDROOT/python-pyvisa-1.10.0-1.fc30.x86_64/usr/lib/python3.7/site-packages/PyVISA-1.10.0-py?.?.egg-info". So I think the developer was not aware of case sensitive systems.
I tried to modify the specfile but with no different result. So original specfile was created using pyp2rpm.
pyp2rpm is an automatic tool that creates a specfile that is not always perfect. Changing the specfile is the way to go. Could you please share the current one?
On Thursday, October 17, 2019 10:58:42 AM CEST Miro Hrončok wrote:
On 16. 10. 19 19:57, Christopher Beck wrote:
Hi,
I am trying to build PyVISA (https://pyvisa.readthedocs.io/en/latest/) using
mock and the problem is, during the build it is looking for
"/builddir/build/BUILDROOT/python-pyvisa-1.10.0-1.fc30.x86_64/usr/lib/pyth on3.7/site-packages/pyvisa-1.10.0-py?.?.egg-info".
But the real name if
the directory is"/builddir/build/BUILDROOT/python-pyvisa-1.10.0-1.fc30.x86_64/usr/lib/py thon3.7/site-packages/PyVISA-1.10.0-py?.?.egg-info".
So I think the
developer was not aware of case sensitive systems. I tried to modify the specfile but with no different result. So original specfile was created using pyp2rpm.
pyp2rpm is an automatic tool that creates a specfile that is not always perfect.
Changing the specfile is the way to go. Could you please share
the current one?
Miro Hrončok
Phone: +420777974800 IRC: mhroncok _______________________________________________ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproj ect.org
I used some like the one in the attachment. One modification was in line 70 as it can be seen here, to have the correct case-sensitive writing of PyVISA. Additionally I changed pypi_name and other stuff (at the end very desperate) all with the same result.
On 19. 10. 19 19:05, Christopher Beck wrote:> I used some like the one in the attachment. One modification was in line 70 as
it can be seen here, to have the correct case-sensitive writing of PyVISA. Additionally I changed pypi_name and other stuff (at the end very desperate) all with the same result.
When I remove this:
# Remove bundled egg-info rm -rf *.egg-info
The package builds fine. The documentation build is looking for the directory.
On Sunday, October 20, 2019 12:34:28 PM CEST Miro Hrončok wrote:
On 19. 10. 19 19:05, Christopher Beck wrote:> I used some like the one in the
attachment. One modification was in line 70 as
it can be seen here, to have the correct case-sensitive writing of PyVISA. Additionally I changed pypi_name and other stuff (at the end very desperate)
all with the same result.
When I remove this:
# Remove bundled egg-info rm -rf *.egg-info
The package builds fine. The documentation build is looking for the directory.
-- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok _______________________________________________ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproj ect.org
Thanks a lot, now it works!
But now this egg-info will not be removed, or doesn't it matter anyway?
Best Regards!
On 20. 10. 19 17:06, Christopher Beck wrote:
On Sunday, October 20, 2019 12:34:28 PM CEST Miro Hrončok wrote:
On 19. 10. 19 19:05, Christopher Beck wrote:> I used some like the one in the
attachment. One modification was in line 70 as
it can be seen here, to have the correct case-sensitive writing of PyVISA. Additionally I changed pypi_name and other stuff (at the end very desperate)
all with the same result.
When I remove this:
# Remove bundled egg-info rm -rf *.egg-info
The package builds fine. The documentation build is looking for the directory.
Thanks a lot, now it works!
But now this egg-info will not be removed, or doesn't it matter anyway?
No. "Binary eggs" must be removed. This is however only a text metadata dir.
pyp2rpm adds this line to every package, it is usually not causing any trouble, but here it does, because the documentation build requires it in this case.
python-devel@lists.fedoraproject.org