tgsmith61591 / pytolemy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding Gdal to requirements

gigly222 opened this issue · comments

Adding Gdal to requirements.

I am thinking to convert a jp2 file to tiff, we might want to use gdal for this task.
https://gis.stackexchange.com/questions/214489/handle-jp2-sentinel-data/214492

If Gdal requires a C build, we probably don't want it in the requirements. What we can do is make it a "develop" requirement (you need it pre-installed to run the tests or build with python setup.py develop), but will be pre-built for the binary dist when we get to that stage. It's the same way scikit handles Numpy or Cython if you want to build it.

I found some gdal binaries for Mac:
http://www.kyngchaos.com/software/frameworks/

It looks like we can just install it from Pypi? Why not do that? Then CI envs would just need libgdal and Numpy to build. Then when we build a bdist for pypi, it will be bundled in.

Let's throw GDAL into requirements.txt and we can monkey-patch some of the setup logic into the setup.py.