pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/url2pkg/files/python/distutils pkgtools/url2p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/91e74301c4d1
branches:  trunk
changeset: 384080:91e74301c4d1
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Aug 26 20:14:58 2022 +0000

description:
pkgtools/url2pkg: make distutils.version.LooseVersion more complete

For the benefit of wip/py-torch.

diffstat:

 pkgtools/url2pkg/files/python/distutils/version.py |  18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r d5fa93827bb3 -r 91e74301c4d1 pkgtools/url2pkg/files/python/distutils/version.py
--- a/pkgtools/url2pkg/files/python/distutils/version.py        Fri Aug 26 20:11:35 2022 +0000
+++ b/pkgtools/url2pkg/files/python/distutils/version.py        Fri Aug 26 20:14:58 2022 +0000
@@ -1,9 +1,21 @@
-# $NetBSD: version.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+# $NetBSD: version.py,v 1.3 2022/08/26 20:14:58 rillig Exp $
 #
 # Fake implementation of distutils.version.
 #
 # https://docs.python.org/3/distutils/apiref.html#module-distutils.version
 
+# indirectly used by pkgsrc package wip/py-torch 1.12.0
+class Version:
+    def __init__(self, vstring=None):
+        pass
+
+
+# just for completeness
+class StrictVersion(Version):
+    pass
+
+
 # used by pkgsrc package wip/py-torch 1.12.0
-class LooseVersion:
-    pass
+class LooseVersion(Version):
+    def __init__(self, vstring=None):
+        super().__init__(vstring)



Home | Main Index | Thread Index | Old Index