summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-04 22:51:22 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-09 09:43:55 +0100
commitae26acc2328b9e9b832c8dee53dcc571d77a27f2 (patch)
tree82e2678e0dc85f0dd8f62dc340522684a472d84a /eclass/distutils-r1.eclass
parentpython-utils-r1.eclass: Add status messages to python_optimize (diff)
downloadgentoo-ae26acc2328b9e9b832c8dee53dcc571d77a27f2.tar.gz
gentoo-ae26acc2328b9e9b832c8dee53dcc571d77a27f2.tar.bz2
gentoo-ae26acc2328b9e9b832c8dee53dcc571d77a27f2.zip
python-utils-r1.eclass: Support matching impls by stdlib version
Update _python_impl_matches() (used to implement python_gen*, python_setup) to support specifying stdlib versions ("3.8", "3.9") in addition to exact implementation names. This makes handling PyPy3 version changes much easier when dealing with backports. For example, if you specify "3.8", then the spec will match python3_8 and pypy3, for as long as we supply PyPy3.8. Once we upgrade to PyPy3.9 completely, it will stop matching pypy3 and we won't have to manually keep updating these deps. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r--eclass/distutils-r1.eclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index a1b840d9cc68..fd3dffeac31c 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -333,9 +333,8 @@ unset -f _distutils_set_globals
# (allowing any implementation). If multiple values are specified,
# implementations matching any of the patterns will be accepted.
#
-# The patterns are fnmatch-style patterns (matched via bash == operator
-# against PYTHON_COMPAT values). Remember to escape or quote the fnmatch
-# patterns to prevent accidental shell filename expansion.
+# For the pattern syntax, please see _python_impl_matches
+# in python-utils-r1.eclass.
#
# If the restriction needs to apply conditionally to a USE flag,
# the variable should be set conditionally as well (e.g. in an early