I've noticed a few times now where a python package unexpectedly produces an egg-info file instead of a directory. This is particularly troubling in light of rpm's inability to replace a directory with a file:

https://fedoraproject.org/wiki/Packaging:Directory_Replacement

This seems to come about in the case of a project using distutils with incorrect options:

running install_egg_info
Writing /builddir/build/BUILDROOT/python-pkgconfig-1.5.1-1.fc31.x86_64/usr/lib/python3.7/site-packages/pkgconfig-1.5.1-py3.7.egg-info /usr/lib64/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)

In the case of pkgconfig, this appears to be coming about due to the use of "poetry" which seems to incorrectly be using distutils instead of setuptools:

https://github.com/sdispater/poetry/issues/866

In any case - please be careful with changing egg-info format - and do use ....egg-info/ in your specs to ensure that the format is a directory as expected.

- Orion

--
Orion Poplawski
Manager of NWRA Technical Systems          720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       or...@nwra.com
Boulder, CO 80301                 https://www.nwra.com/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org

Reply via email to