GeoEco.Dependencies.WindowsDependency
- class GeoEco.Dependencies.WindowsDependency(minimumMajorVersion, minimumMinorVersion=None, minimumServicePack=None, minimumBuild=None)
Bases:
DependencyA
Dependencythat checks that the operating system is Microsoft Windows, and its version.- Parameters:
minimumMajorVersion (
int) – Minimum major version number (the first number reported by thevercommand executed from the Windows Command Prompt) of Microsoft Windows that must be installed. Minimum value꞉ 5.minimumMinorVersion (
int, optional) – Minimum minor version number (the second number reported by thevercommand executed from the Windows Command Prompt) of Microsoft Windows that must be installed, orNoneto indicate the minor version number should not be checked. Minimum value꞉ 0.minimumServicePack (
int, optional) – Minimum Windows service pack number that must be installed, orNoneto indicate the service pack number should not be checked. Minimum value꞉ 0.minimumBuild (
int, optional) – Minimum Windows build number that must be installed, orNoneto indicate the build number should not be checked. Starting with Windows 10, the build number should always be given. Minimum value꞉ 0.
- Returns:
New
WindowsDependencyinstance.- Return type:
Properties
- property MinimumBuild
(
intorNone) Minimum Windows build number that must be installed, orNoneto indicate the build number should not be checked. Starting with Windows 10, the build number should always be given. Read only. Minimum value꞉ 0.
- property MinimumMajorVersion
(
int) Minimum major version number (the first number reported by thevercommand executed from the Windows Command Prompt) of Microsoft Windows that must be installed. Read only. Minimum value꞉ 5.
- property MinimumMinorVersion
(
intorNone) Minimum minor version number (the second number reported by thevercommand executed from the Windows Command Prompt) of Microsoft Windows that must be installed, orNoneto indicate the minor version number should not be checked. Read only. Minimum value꞉ 0.
- property MinimumServicePack
(
intorNone) Minimum Windows service pack number that must be installed, orNoneto indicate the service pack 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 version, minor version, service pack number, and build number of Microsoft Windows, as obtained from Python's
sys.getwindowsversion().Given version numbers, returns a descriptive name of the corresponding Microsoft Windows product.
Check that the operating system is Microsoft Windows and that its version meets or exceeds what we require.
Sets the minimum version number of Microsoft Windows that is required.