packages.getEnvironmentPackages

packages.getEnvironmentPackages

Get products and their versions from the environment.

Parameters:
include_all : bool

If False only returns locally-setup packages. If True all set up packages are returned with a version that includes any associated non-current tags.

Returns:
packages : dict

Keys (type str) are product names; values (type str) are their versions.

Notes

We use EUPS to determine the version of certain products (those that don’t provide a means to determine the version any other way) and to check if uninstalled packages are being used. We only report the product/version for these packages unless include_all is True.