GeoEco.ArcGIS.ArcGISDependency

class GeoEco.ArcGIS.ArcGISDependency(minimumMajorVersion=3, minimumMinorVersion=2, minimumPatchVersion=None, productNames=['ArcGISPro', 'Server'], licenseLevels=None)

Bases: Dependency

A Dependency that checks that ArcGIS and its Python package is installed, and its version.

When Initialize() is called and the version numbers are checked, they will be extracted from the Version key of the dictionary returned by GetInstallInfo(), unless a ProVersion key exists, which will happen if ArcGIS Server is installed, in which case ProVersion will be used. This means that if ArcGIS Server is installed, Initialize() will check the version of ArcGIS Pro that Server is compatible with, not the version of ArcGIS Server itself.

Parameters:
  • minimumMajorVersion (int, optional) – Minimum major version number of ArcGIS that must be installed. Minimum value꞉ 1.

  • minimumMinorVersion (int, optional) – Minimum major version number of ArcGIS that must be installed. Minimum value꞉ 0.

  • minimumPatchVersion (int, optional) – Minimum patch version number of ArcGIS that must be installed. Minimum value꞉ 0.

  • productNames (list of str, optional) – List ArcGIS product names, at least one of which must be installed. Minimum length꞉ 1.

  • licenseLevels (list of str, optional) – List ArcGIS license levels, at least one of which must be installed. If None, then license levels will not be checked. Minimum length꞉ 1.

Returns:

New ArcGISDependency instance.

Return type:

ArcGISDependency

Properties

property LicenseLevels

(list of str or None) List ArcGIS license levels, at least one of which must be installed. If None, then license levels will not be checked. Minimum length꞉ 1.

property MinimumMajorVersion

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

property MinimumMinorVersion

(int or None) Minimum major version number of ArcGIS that must be installed. Read only. Minimum value꞉ 0.

property MinimumPatchVersion

(int or None) Minimum patch version number of ArcGIS that must be installed. Read only. Minimum value꞉ 0.

property ProductNames

(list of str) List ArcGIS product names, at least one of which must be installed. Minimum length꞉ 1.

Methods

GetConstraintDescriptionStrings

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

Initialize

Check that the depended-upon software is available and initialize it for use.

SetVersion

Sets the minimum version number of ArcGIS that must be installed.