This was pretty useful for us as we come as an extra layer, on top of you, we used this for consistency to be sure that python version used with ROOT is the same as the one requested by our user wen installing our platform.
Would it be possible to bring this information back ?
This is the full report on my side (no information available) and we have the same issue with another colleague…So far we kept on wirtting -Dpython=‘ON’ instead of -Dpyroot=‘ON’ but from the early test i’m doing, this does not change a thing
You can easily use bin/root-config --python-version that was created for this puprose.
(otherwise if you think that it is not enough please open a Jira ticket, we will happy to check how it could be improved)
The same “version” may come from different directories. That’s why these “PYTHON_*” variables were used. It seems to me that now there should be two sets of variables: “PYTHON2_*” and “PYTHON3_*”.
Using -Dpyroot=‘ON’ gives the same results : there are no flags with PYTHON.
I already use root-config --python-version to compare the versions used by ROOT and requested for our platform by a user. The only thing I meant is that up to now, thanks to the information provided, I was able to overwrite python config at cmake level for our platform to be sure (if requested python version was not the one ROOT was compiled with) that everything was safe and sound.
I’ll leave the code as it is now for rel < 6.20 and for rel >= 6.20 our code will just exposed that python version are differents and that by default python will be switched off.