GeoEco.Dependencies.PythonDependency
- class GeoEco.Dependencies.PythonDependency(minimumMajorVersion, minimumMinorVersion=None, minimumPatchVersion=None)
Bases:
DependencyA
Dependencythat checks the version of Python that is running.- Parameters:
minimumMajorVersion (
int) – Minimum major version number of Python that must be installed. Minimum value꞉ 3.minimumMinorVersion (
int, optional) – Minimum minor version number of Python that must be installed, orNoneto indicate the minor version number should not be checked. Minimum value꞉ 0.minimumPatchVersion (
int, optional) – Minimum patch version number of Python that must be installed, orNoneto indicate the patch version number should not be checked. Minimum value꞉ 0.
- Returns:
New
PythonDependencyinstance.- Return type:
Properties
- property MinimumMajorVersion
(
int) Minimum major version number of Python that must be installed. Read only. Minimum value꞉ 3.
- property MinimumMinorVersion
(
intorNone) Minimum minor version number of Python that must be installed, orNoneto indicate the minor version number should not be checked. Read only. Minimum value꞉ 0.
- property MinimumPatchVersion
(
intorNone) Minimum patch version number of Python that must be installed, orNoneto indicate the patch version number should not be checked. Read only. Minimum value꞉ 0.
Methods
Returns the names of the software identified by this dependency, suitable to display to the user.
Returns the major, minor, and patch version numbers of Python.
Check that the version of Python meets or exceeds what we require.
Sets the minimum version number of Python that is required.