GeoEco.Dependencies.PythonDependency

class GeoEco.Dependencies.PythonDependency(minimumMajorVersion, minimumMinorVersion=None, minimumPatchVersion=None)

Bases: Dependency

A Dependency that 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, or None to 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, or None to indicate the patch version number should not be checked. Minimum value꞉ 0.

Returns:

New PythonDependency instance.

Return type:

PythonDependency

Properties

property MinimumMajorVersion

(int) Minimum major version number of Python that must be installed. Read only. Minimum value꞉ 3.

property MinimumMinorVersion

(int or None) Minimum minor version number of Python that must be installed, or None to indicate the minor version number should not be checked. Read only. Minimum value꞉ 0.

property MinimumPatchVersion

(int or None) Minimum patch version number of Python that must be installed, or None to indicate the patch version number should not be checked. Read only. Minimum value꞉ 0.

Methods

GetConstraintDescriptionStrings

Returns the names of the software identified by this dependency, suitable to display to the user.

GetInstalledVersion

Returns the major, minor, and patch version numbers of Python.

Initialize

Check that the version of Python meets or exceeds what we require.

SetVersion

Sets the minimum version number of Python that is required.