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
- forcebool, optional
If True, force a new determination of the version, even if the compiler already has a version attribute. Default is False.
- ok_statuslist 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
- versionstr or None
Version string, in the format of
distutils.version.LooseVersion
.