Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python bindings installation path is incorrect #6

Closed
akhenakh opened this issue Jan 18, 2018 · 3 comments · Fixed by #34
Closed

Python bindings installation path is incorrect #6

akhenakh opened this issue Jan 18, 2018 · 3 comments · Fixed by #34

Comments

@akhenakh
Copy link

The current cmake configuration does not search for the correct python site-packages directory and install the bindings in PREFIX/share/python, so it can't be loaded by the interpreter as is.

One solution would be to look for site-packages directory via python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"

The right way is probably to use python itself to build & install the bindings.

@jmr
Copy link
Member

jmr commented Jan 19, 2018

I've seen some pretty hairy CMake files to get this right. Could you point me at one I should follow?

@akhenakh
Copy link
Author

OpenCV python bindings would be a good (not simple) example with cmake

If you hope for a larger audience on Python a packaging for Pypi would help https://pypi.python.org/pypi/opencv-python with prebuilt binaries and all to ship the c++ library with Python but it's a long road ahead :)

@akhenakh
Copy link
Author

One good reason would be an S2 plugins for QGIS

Something I've tried several times to work on but stopped because of packaging dependencies nightmare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants