Skip to content

Python Module Versions, master branch (2022.03.25.)

Taught lcg_python_external_module(...) how to get module versions for a large group of modules provided by an LCG release. This is to handle this need for figuring out the version of some packages in !936 (closed).

The function can only look for a __version__ variable at the moment. For the python modules that provide this information through some other means, the individual find-modules will need to be updated as necessary.

Modules that have dependencies on other LCG modules, are not supported at the moment. Support for those could be added later on, if needed.

In addition, I only updated the find-modules that exist in LCG_101_ATLAS_14. Since I didn't want to introduce a requirement for getting the version of a module that I couldn't easily test explicitly.

@fwinkl, as you'll see, I pretty much stole your code. I just needed to tweak it a bit to make it set up PYTHONPATH so that things would work for at least this list of find-modules.

Merge request reports