Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Return True if a released version of numpy is detected.

        def is_released(config):
    """Return True if a released version of numpy is detected."""
    from distutils.version import LooseVersion

    v = config.get_version('../version.py')
    if v is None:
        raise ValueError("Could not get version")
    pv = LooseVersion(vstring=v).version
    if len(pv) > 3:
        return False
    return True
        


src/m/i/MissionPlanner-HEAD/Lib/site-packages/numpy/core/setup.py   MissionPlanner(Download)
from numpy.distutils.system_info import get_info
 
from setup_common import is_released
 
 
    codegen_dir = join(local_dir, 'code_generators')
 
    if is_released(config):
        warnings.simplefilter('error', MismatchCAPIWarning)