[gdal-dev] PyPI GDAL package has development default, does not easy_install

Luke Tucker ltucker at openplans.org
Fri Aug 13 20:04:38 EDT 2010


Hi,

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:

gdal-config="../../apps/gdal-config"

See:
http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/python/setup.cfg?annotate=blame&rev=15445

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)

The default results in the following behavior:

GDAL-1.7.1$ python ./setup.py install
running install
running bdist_egg
running egg_info
writing GDAL.egg-info/PKG-INFO
writing top-level names to GDAL.egg-info/top_level.txt
writing dependency_links to GDAL.egg-info/dependency_links.txt
Could not run gdal-config!!!!
[... chaos ensues]

A similar error occurs running easy_install GDAL.  After removing the line,
works fine for me.

I created a ticket about this a while ago, but it doesn't look like anyone
has touched it:
http://trac.osgeo.org/gdal/ticket/3375

- Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100813/50c59616/attachment.html


More information about the gdal-dev mailing list