geonotebook icon indicating copy to clipboard operation
geonotebook copied to clipboard

Pip-installable version for python-mapnik

Open tiagofassoni opened this issue 7 years ago • 3 comments

Hello, do you guys have any idea on how hard would it be to have the pip instalable bindings for python mapnik. Just to give me some pointers so I can do it (or else, not do, if it's completely unfeasible)

tiagofassoni avatar Oct 13 '17 13:10 tiagofassoni

It would be theoretically possible, but not easy. An effort was recently undertaken to make ITK's python binding pip installable. The results of that are in https://github.com/InsightSoftwareConsortium/ITKPythonPackage. I don't know much about how it works, but I think it relies heavily on the fact that ITK is built with CMake. If you want to pursue it, @jcfr and @thewtex could probably fill in more details for you.

jbeezley avatar Oct 13 '17 13:10 jbeezley

ITK's Python packaging uses a Python package called scikit-build to make packaging of Python C extensions built with CMake possible. We would be happy to see it utilized by other projects!

thewtex avatar Oct 13 '17 17:10 thewtex

@tiagofassoni FWIW locally I build a wheel from python-mapnik's source code and then use that to install across different development/review environments. The wheel can't really be distributed, but it does save time on building from source

kotfic avatar Oct 16 '17 15:10 kotfic