[Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)
Steve Kowalik
notifications at github.com
Fri Oct 30 03:57:33 UTC 2020
@s-t-e-v-e-n-k commented on this pull request.
> +try:
+ from importlib.metadata import PathDistribution
+except ImportError:
+ from importlib_metadata import PathDistribution
+
+try:
+ from pathlib import Path
+except ImportError:
+ from pathlib2 import Path
+
+
+class Req(Requirement):
+ def __init__(self, requirement_string):
+ super(Req, self).__init__(requirement_string)
+ self.normalized_name = normalize_name(self.name)
+ self.legacy_normalized_name = legacy_normalize_name(self.name)
I'm trying to keep the diff small, but I can move the function definition up if you wish.
--
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/1317#discussion_r514806181
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201029/768ac6db/attachment.html>
More information about the Rpm-maint
mailing list