<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 13, 2016 at 12:02 AM, Luí­s de Sousa <span dir="ltr"><<a href="mailto:luis.de.sousa@protonmail.ch" target="_blank">luis.de.sousa@protonmail.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thank you for the reply Chris.<br></div><div><br></div><div>I just tried to install pygdal directly from PiPY on a stock Ubuntu distribution and it fails [0], even if I supposedly have all the necessary headers installed.</div></blockquote><div><br></div><div>I took a quick look, and it looks like the buld/install failed on numpy -- numpy is a dependency of gdal. so you may want to get numpy installed first.</div><div><br></div><div>(that surprises me -- I thought numpy built out of the box pretty easily -- if not with an optimized BLAS) and it looks like it did build, but somehow failed to install....</div><div><br></div><div>anyway, this is all why Anaconda and Canopy exist...</div><div><br></div><div>-CHB</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I will try easier ways before going with Conda, but thanks for the suggestion in any case.<br></div><div><br></div><div>Luís<br></div><div><br></div><div>[0] <a href="http://pastebin.com/gzrimLvB" target="_blank">http://pastebin.com/gzrimLvB</a><br></div><span class="im HOEnZb"><div><br></div><div><i>Sent from <a href="https://protonmail.ch" target="_blank">ProtonMail</a>, encrypted email based in Switzerland.</i><br></div><div><br></div><div><br></div></span><div class="HOEnZb"><div class="h5"><blockquote type="cite"><div>-------- Original Message --------<br></div><div>Subject: Re: [Distutils] How to add GDAL as a dependency to a Python package<br></div><div>Local Time: April 12, 2016 6:45 PM<br></div><div>UTC Time: April 12, 2016 4:45 PM<br></div><div>From: <a href="mailto:chris.barker@noaa.gov" target="_blank">chris.barker@noaa.gov</a><br></div><div>To: <a href="mailto:luis.de.sousa@protonmail.ch" target="_blank">luis.de.sousa@protonmail.ch</a><br></div><div>CC: <a href="mailto:distutils-sig@python.org" target="_blank">distutils-sig@python.org</a><br></div><div><br></div><div dir="ltr"><div>setting gdal as a dependency is only going to work if one of these is true:<br></div><div><br></div><div>* There is a binary wheel on PyPi for gdal (which is very hard to do, though with teh manylinux effort, maybe there will be some day)<br></div><div><br></div><div>* the system on which you are trying to install is all set up to compile gdal -- which is a major effort, and indeed, I'm not sure is possible (I haven't looked)<br></div><div>  - The GDAL source ships with the python bindings, so the usual thing is for gdal itself and the pyton bindings to all get compiled and installed at once. I"m not srue that anyone has made a setup.py that will do that.<br></div><div><br></div><div>This kind of thing is exactly why conda exists -- python packages with complex non-python dependencies are not well handled by pip / pypi -- if I were you, I"d give it a try :-)<br></div><div><br></div><div>-CHB<br></div></div></blockquote><div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>