This script can be used to install correctionlib in a CMSSW release that does not have the py3-correctionlib tool installed, based on the instructions in this discussion.
The script should be sourced (. ./install_correctionlib.sh
or source ./install_correctionlib
),
so it will run in the same shell from where it is called.
The cleanest is to open a new shell after running it to install correctionlib, to prevent some variables from staying in the environment.
By default it will use the python version that CMSSW uses for configuration,