Add env_package_list function to capture full environment listing
This MR adds a new bilby.core.utils.env_package_list()
function that returns a list
of package-information dict
s for all packages in the environment, either using conda list
or pip list installed
(in that preference order), and modifies bilby.core.sampler.run_sampler()
to attach a new metadata attribute environment_packages
to the results.
Edited by Duncan Macleod