OpenGeoscience / geonotebook

A Jupyter notebook extension for geospatial visualization and analysis
Apache License 2.0
1.08k stars 141 forks source link

Pip-installable version for python-mapnik #151

Open tiagofassoni opened 6 years ago

tiagofassoni commented 6 years ago

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)

jbeezley commented 6 years ago

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.

thewtex commented 6 years ago

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!

kotfic commented 6 years ago

@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