numpy / 1.22.0 / reference / generated / numpy.distutils.ccompiler.ccompiler_get_version.html /

numpy.distutils.ccompiler.CCompiler_get_version

distutils.ccompiler. CCompiler_get_version ( self, force=False, ok_status=[0] ) [source]

Return compiler version, or None if compiler is not available.

Parameters
force bool, optional

If True, force a new determination of the version, even if the compiler already has a version attribute. Default is False.

ok_status list of int, optional

The list of status values returned by the version look-up process for which a version string is returned. If the status value is not in ok_status, None is returned. Default is [0].

Returns
version str or None

Version string, in the format of distutils.version.LooseVersion.

© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.distutils.ccompiler.CCompiler_get_version.html