numpy.distutils.ccompiler.simple_version_match
-
distutils.ccompiler.simple_version_match(pat='[-.\\d]+', ignore='', start='')
[source] -
Simple matching of version numbers, for use in CCompiler and FCompiler.
- Parameters
-
-
patstr, optional
-
A regular expression matching version numbers. Default is
r'[-.\d]+'
. -
ignorestr, optional
-
A regular expression matching patterns to skip. Default is
''
, in which case nothing is skipped. -
startstr, optional
-
A regular expression matching the start of where to start looking for version numbers. Default is
''
, in which case searching is started at the beginning of the version string given tomatcher
.
-
- Returns
-
-
matchercallable
-
A function that is appropriate to use as the
.version_match
attribute of aCCompiler
class.matcher
takes a single parameter, a version string.
-
© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.21/reference/generated/numpy.distutils.ccompiler.simple_version_match.html