[Rpm-maint] [rpm-software-management/rpm] Fix pythondistdeps.py --provides for Python wheels (#154)
torsava
notifications at github.com
Wed Feb 15 14:16:40 UTC 2017
torsava commented on this pull request.
> if not dist.py_version:
- warn("Version for {!r} has not been found".format(dist), RuntimeWarning)
- continue
+ # Try to parse the Python version from the path the metadata
+ # resides at (e.g. /usr/lib/pythonX.Y/site-packages/...)
+ import re
+ res = re.search("/python(?P<pyver>\d+\.\d)/", path_item)
Indeed I did, it works. Raw string is great if you want to use known escape codes verbatim (\n, \r and the like), here it's superfluous. But it's a good practice so I added it now.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/154
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170215/5c92c0fa/attachment-0001.html>
More information about the Rpm-maint
mailing list