OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.55k stars 1.15k forks source link

build(wrappers/python): improve python detection #610

Closed piedar closed 4 years ago

piedar commented 4 years ago

This PR improves detection of the Python interpreter and libraries via new CMake features like FindPython3. There is now also the ability to specify the exact Python version like

cmake .. -DBUILD_PYTHON3=ON -DPython3_EXACTVERSION="3.6.9"

which is useful on Gentoo where numpy is not yet available for python3.7.

piedar commented 4 years ago

The latest Ubuntu LTS 18.04 bionic is still on cmake-3.10.2. The next LTS release should be out soon so I'll keep this PR pending until then.