librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

optional installation location of python binding

Open marvin-hao opened this issue 8 years ago • 4 comments

Required Info
Camera Model SR300
Firmware Version
Operating System & Version UBUNTU 16.04
Kernel Version (Linux Only) 4.4.0-109-generic
SDK Version rs2

Is it possible to provide a customised value for LIBRARY DESTINATION when installing the Python wrapper? It's currently using CMAKE_INSTALL_LIBDIR but lib/pythonx.x/site-packages would be more preferable since sometimes we build python from source with different configurations.

Additionally, it'll be great if the author can mention two configurable variables PYTHON_INCLUDE_DIRS and PYTHON_LIBRARIES in README, which are provided by pybind11.

Thanks!

marvin-hao avatar Jan 18 '18 04:01 marvin-hao

Hi @marvin-hao , Why do you need the pybind11's cmake variables? Is the -DPYTHON_EXECUTABLE not enough?

zivsha avatar Feb 03 '18 19:02 zivsha

Hello @marvin-hao,

Do you still need help with this issue?

Regards, Jesus G. Intel Customer Support

jlgarcia75 avatar Mar 02 '18 18:03 jlgarcia75

Hi @jlgarcia75,

Currently, we copy all binaries to site-packages manually. It makes more sense if it can install the Python wrapper in PYTHON_LIBRARIES like what OpenCV did, instead of CMAKE_INSTALL_LIBDIR.

Thank you!

marvin-hao avatar Mar 02 '18 19:03 marvin-hao

[Realsense Customer Engineering Team Comment] Hello @marvin-hao,

Thanks for your feedback, it has been forwarded to the engineering team. Closing issue.

Regards, Jesus G. Intel Customer Support