[Gdal-dev] GDAL Pythoon extensions

Norman Vine nhv at cape.com
Sun Dec 5 12:23:56 EST 2004


Hi All,

After fighting with libtool for awhile I finally got the 
GDAL Python extensions to build on Darwin.

The trick was hand editing the generated 'libtool' file 

replacing all occurences of 
  '-bundle'
with
  '-bundle -framework Python'

Woot !

Norman

firn:~/devel/src nhv$ uname -mprs
Darwin 7.5.0 Power Macintosh powerpc

firn:~/devel/src/ nhv$ python
Python 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from gdal import *
>>> from gdalnumeric import *
>>> dir()
['AllRegister', 'ArrayType', 'AutoCreateWarpedVRT', 'Band', 'BandReadAsArray', 'BandWriteArray', 'CE_Debug', 'CE_Failure
', 'CE_Fatal', 'CE_None', 'CE_Warning', 'CPLES_BackslashQuotable', 'CPLES_CSV', 'CPLES_SQL', 'CPLES_URL', 'CPLES_XML', 
....... < snip >
 'ravel', 'remainder', 'repeat', 'reshape', 'resize', 'right_shift', 'sarray', 'searchsorted', 'shape', 'sign', 'sin',
 'sinh', 'size', 'sometrue', 'sort', 'sqrt', 'string', 'subtract', 'sum', 'swapaxes', 'take', 'tan', 'tanh', 'trace', 't
ranspose', 'true_divide', 'typecodes', 'types', 'vdot', 'where', 'zeros']
>>>


 



More information about the Gdal-dev mailing list