Open mohamedghita opened 4 years ago
This is a wrapper around the python matplotlib library. So it requires python(3) and the python matplotlib library.
The first can be packaged by conan, but we don't have packaged a python library before.
This is how I add it to my CMakeLists.txt
#### findPython3
set(Python3_ROOT_DIR "/opt/local/bin")
find_package(Python3 REQUIRED COMPONENTS Development NumPy)
set(CONAN_LIBS ${CONAN_LIBS} Python3::Python Python3::NumPy)
I guess we can make an option in the recipe to set the location of "Python3_ROOT_DIR" and use CMake to find Python and Numpy. But the user need to make sure that numpy and matplotlib are installed using pip or other python package manager. The library itself has a couple of options: WITHOUT_NUMPY and WITH_OPENCV.
On another thought, does it make sense to write a python installer-package with a few py libs options? the same idea like Conan CMake installer package!
According to: https://github.com/conan-io/conan-center-index/pull/4212#issuecomment-847964107
If matplotlib-cpp
is hard to compile and be used in Conan, then why not focus on the matplotplusplus
library?
I see that this matplotplusplus
library request is already posted: https://github.com/conan-io/conan-center-index/issues/7086
Package Details
Description Of The Library / Tool
possibly the simplest C++ plotting library. It is built to resemble the plotting API used by Matlab and matplotlib.