Returns True if the specified Python module satisfies a minimum version requirement, and False if not.
By default this uses pkg_resources.parse_version to do the version comparison if available. Otherwise it falls back on distutils.version.LooseVersion.
Parameters: | module : module or str
version : str
inclusive : bool
version_path : str
|
---|
Examples
>>> import astropy
>>> minversion(astropy, '0.4.4')
True