getEnvironmentPackages#
- lsst.utils.packages.getEnvironmentPackages(include_all: bool = False) dict[str, str]#
Get products and their versions from the environment.
Parameters#
- include_all
bool If
Falseonly returns locally-setup packages. IfTrueall 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 (typestr) 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_allisTrue.Assumes that no new EUPS packages are set up after this function is called the first time.
- include_all