getEnvironmentPackages

lsst.utils.packages.getEnvironmentPackages(include_all: bool = False) dict[str, str]

Get products and their versions from the environment.

Parameters:
include_allbool

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:
packagesdict

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.