CMake: Enable selection of a specific python impl#787
CMake: Enable selection of a specific python impl#787val-ms merged 2 commits intoCisco-Talos:mainfrom
Conversation
|
Thanks for submitting this contribution, @Kangie Can you please find a place to document the new cmake option in the |
Will do, I'm travelling at the moment so expect an update in a couple of days. I figured there would be a docs update required, at least there's an opportunity to address any feedback too. 😄 There are "better" ways to do this (e.g. setting the magic python3 executable var) but they're incompatible with calling pytest directly, which works in the vast majority of cases; I didn't want to change up the existing logic and remove that, so we got a new variable. |
Sounds good. Just leave a comment when you have updated it and are ready for a re-review. I will also be traveling for about a week. I will respond when I'm back. |
On distros with multiple python impls it can be useful to select a specific version rather than whatever CMake thinks is appopriate. This patch enables users to instruct CMake to look for a specific version of python by passing `-DPYTHON_FIND_VER`.
- Reference `PYTHON_FIND_VER` - Add generic instructions for selecting specific implementations of build-time tools (LLVM, Python)
2ec9a74 to
5a309f3
Compare
|
@micahsnyder I think that this should cover it. The addition under 'Build Tools' is generic enough to cover LLVM, Python and anything else that comes up in the future. If we need more detail on the specifics I can add a link to the CMake docs for 'find_package' however I think that this is fine. |
On distros with multiple python impls it can be useful to select a specific version rather than whatever CMake thinks is appopriate.
This patch enables users to instruct CMake to look for a specific version of python by passing
-DPYTHON_FIND_VER.