Biomechanical-ToolKit / BTKCore

Core of the project to represent biomechanical data, file formats and data processing
Other
78 stars 55 forks source link

Support building for Python 3 #26

Open allardhoeve opened 5 years ago

allardhoeve commented 5 years ago

The library just works for Python 3, but the compilation has a small problem with print no longer being a keyword but a function. This makes it so that CMAKE thinks numpy is not installed.

So this PR changes the CMAKE instructions needed to find numpy so that they work on both Python 3 and Python 2.

Note that Python 2.7 will be end-of-life in about seven months, so getting Python 3 support in is pretty important. Luckily it seems to be very easy.

allardhoeve commented 5 years ago

Any chance of this going in @Alzathar? Thanks.