Hi, <div><br></div><div>I noticed the releases of the python GDAL bindings uploaded to PyPI have a strange default setting. Namely, the line in setup.cfg that sets: </div><div><br></div><div>gdal-config="../../apps/gdal-config"</div>
<div><br></div><div>See: <a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/python/setup.cfg?annotate=blame&rev=15445">http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/python/setup.cfg?annotate=blame&rev=15445</a></div>
<div><br></div><div>This appears to be reasonable in a development context when building everything from scratch, but when just installing the python package from a random location, it seems unlikely at best ;) Removing the line from setup.cfg when uploading PyPI packages would allow setup.py to guess that gdal-config is in the user's path (more likely)</div>
<div><br></div><div>The default results in the following behavior:</div><div><br></div><div><div>GDAL-1.7.1$ python ./setup.py install</div><div>running install</div><div>running bdist_egg</div><div>running egg_info</div>
<div>writing GDAL.egg-info/PKG-INFO</div><div>writing top-level names to GDAL.egg-info/top_level.txt</div><div>writing dependency_links to GDAL.egg-info/dependency_links.txt</div><div>Could not run gdal-config!!!!</div></div>
<div>[... chaos ensues]</div><div><br></div><div>A similar error occurs running easy_install GDAL. After removing the line, works fine for me. </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br></div><div>I created a ticket about this a while ago, but it doesn't look like anyone has touched it: </div><div><a href="http://trac.osgeo.org/gdal/ticket/3375">http://trac.osgeo.org/gdal/ticket/3375</a></div><div>
<br></div><div>- Luke</div>