floooh / fips

High-level build system for distributed, multi-platform C/C++ projects.
MIT License
468 stars 82 forks source link

Use find_package for Python. #269

Closed paulevans closed 3 years ago

paulevans commented 3 years ago

Windows Store installed Python is then found.

floooh commented 3 years ago

Looks like I need to do some python2 vs python3 fixes first which are unrelated to this PR.

I love python3, not...

floooh commented 3 years ago

Ok, merged, thanks! I'm going to check my projects on macOS, Linux and Windows whether it does the right thing (I suspect that FindPackage(Python) prefers python3 if both python3 and python(2) are installed, while find_program("python") would "prefer" python2 on system where both a "python" and a "python3" program is in the path.