pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/pkgtools/url2pkg/files/python/distutils
Module Name: pkgsrc
Committed By: rillig
Date: Fri Aug 26 20:14:58 UTC 2022
Modified Files:
pkgsrc/pkgtools/url2pkg/files/python/distutils: version.py
Log Message:
pkgtools/url2pkg: make distutils.version.LooseVersion more complete
For the benefit of wip/py-torch.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/pkgtools/url2pkg/files/python/distutils/version.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/pkgtools/url2pkg/files/python/distutils/version.py
diff -u pkgsrc/pkgtools/url2pkg/files/python/distutils/version.py:1.2 pkgsrc/pkgtools/url2pkg/files/python/distutils/version.py:1.3
--- pkgsrc/pkgtools/url2pkg/files/python/distutils/version.py:1.2 Thu Aug 25 19:56:07 2022
+++ pkgsrc/pkgtools/url2pkg/files/python/distutils/version.py Fri Aug 26 20:14:58 2022
@@ -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
-# used by pkgsrc package wip/py-torch 1.12.0
-class LooseVersion:
+# 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(Version):
+ def __init__(self, vstring=None):
+ super().__init__(vstring)
Home |
Main Index |
Thread Index |
Old Index