Allows use of this library in macOS#132
Conversation
…thon.h>" to "#include <Python/Python.h>"
|
I'm curious how does MacOS handle python2 vs python3? The extended include path doesn't seem to include a version number. |
|
I've just started playing with this (very useful!) library on OSX using Python 3. It all seems to work fine and I didn't need to do anything unusual to get and |
|
Sorry, I may have got confused. I can quite happily use this library, i.e. the header file and the various python libraries and header files in my own project. This works fine. However, I can't build this project on my Mac either. I get the same error. I think it might be to do with how the cmake file is set up. I am investigating... |
|
Using the provided Makefile and Python 3 I'm not having any issues on Mac (Catalina, 10.15.4). I'm not sure if this conditional change is ideal. |
This is a small change to allow the use of this library with macOS:
"#include <Python.h>" is conditionally changed to "#include <Python/Python.h>"