conductor.lib.package_utils module

class conductor.lib.package_utils.ProductInfo

Bases: object

A class for retrieving version information for a given piece of software. This is a baseclass that is intended to be overridden for each piece of software this is supported.:

# This is package for Maya
{
    'product': 'Maya'
    'version': "Autodesk Maya 2015 SP4"
    'plugin_host_product': '',
    'plugin_host_version': ''
},

# This is a package for Arnold for Maya
{
    'product': 'Arnold for Maya',
    'version': '1.1.1.1'
    'plugin_host_product': 'Maya',
    'plugin_host_version': '2015'
}
classmethod get(product=None, vendor=None, version=None, plugin_host_product=None, plugin_host_version=None)
classmethod get_build_version()

Return the name of the software package, e.g. “Autodesk Maya 2015 SP4”

classmethod get_major_version()

Return the name of the software package, e.g. “Autodesk Maya 2015 SP4”

classmethod get_minor_version()

Return the name of the software package, e.g. “Autodesk Maya 2015 SP4”

classmethod get_plugin_host_product()

Return the name of the host software package, e.g. “Maya” or “Katana”

classmethod get_plugin_host_version()

Return the name of the host software package, e.g. “Autodesk Maya 2015 SP4”

classmethod get_product()

Return the name of the software package, e.g. “Maya” or “Vray for Maya”, or “Katana”

classmethod get_regex()
classmethod get_release_version()

Return the name of the software package, e.g. “Autodesk Maya 2015 SP4”

classmethod get_vendor()

Return the Product vendor name, e.g. “Autodesk”

classmethod get_version()

Return the name of the software package, e.g. “Autodesk Maya 2015 SP4”

classmethod regex_version()
conductor.lib.package_utils.get_host_from_packages(cls, package, source_packages)

If the given package has a host package, retrieve the host package from the app.

conductor.lib.package_utils.get_host_package(host_product, host_version, strict=True)
conductor.lib.package_utils.get_matching_packages(software_info, packages)
conductor.lib.package_utils.get_plugin_package_id(host_product, host_version, plugin_product, plugin_version, strict=True)
conductor.lib.package_utils.merge_package_environment(package_environment, base_env=None)

For the given conductor software packages, resolve and merge their environments int one single dictionary.

Merge policies:

  • “append”: appends values, separated by colons
  • “exclusive”: indicates that
conductor.lib.package_utils.merge_package_environments(packages, base_env=None)

For the given conductor software packages, resolve and merge their environments int one single dictionary.

Merge policies:

  • “append”: appends values, separated by colons
  • “exclusive”: indicates that