FindPython: Revamp FindPython{Interp,Libs}
My proposal:
Create three new modules: FindPython
, FindPython2
, and FindPython3
. The FindPython
module will simply select which one to call based on the VERSION
specified, or Python3 by default (in the interest of actually moving the world past Python2). The modules should not conflict and should also support COMPONENTS
to get the interpreter and libraries separately. Both Python2 and Python3 should be supported within a single project (they should not overlap; FindPython
may need some logic to handle this).
Backwards compatibility with the current FindPython*
modules might be able to be dropped due to the module names no longer being the same.
An open question: what to do about alternate interpreters? Jython, IronPython, PyPy, etc.?
Issues which should be at least be considered (and preferably addressed) in the new module(s) by this: #9897 (closed), #11839, #12133 (closed), #13361 (closed), #13395 (closed), #13818 (closed), #13857, #14156 (closed), #14270 (closed) (maybe), #14271 (closed), #14273 (closed), #14809 (closed), #14920 (closed), #15661 (closed), #16141 (closed), #17673 (closed).