conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
956 stars 1.75k forks source link

[request] matplotlib-cpp/master #3033

Open mohamedghita opened 4 years ago

mohamedghita commented 4 years ago

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.

madebr commented 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.

mohamedghita commented 4 years ago

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!

blackliner commented 3 years ago

See https://github.com/conan-io/conan-center-index/pull/4212

hwhsu1231 commented 2 years ago

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