
from glob import glob
from setuptools import setup


# Get text from README.txt
readme_text = file('README.txt', 'rb').read()


import os

if os.name == 'nt':
    data_files=[('DLLs',[r'c:\cvs\buildkit\spatialindex\spatialindex1.dll',]),]
    libraries = ['spatialindex_i',]
    
    # because Extension building without init{modulename} doesn't work 
    # on windows
    from setuptools import Library as Extension

else:
    data_files = None
    libraries = ['spatialindex',]
    
    from setuptools import Extension

libsidx = Extension('libsidx',
                  sources=[ 'libsidx/sidx_api.cc',
                            'libsidx/boundsquery.cc',
                            'libsidx/datastream.cc',
                            'libsidx/error.cc',
                            'libsidx/idvisitor.cc',
                            'libsidx/index.cc',
                            'libsidx/item.cc',
                            'libsidx/objvisitor.cc',
                            'libsidx/util.cc'],
                  include_dirs=['./libsidx'],
                  libraries=libraries
                  )
                  
setup(name          = 'Rtree',
      version       = '0.5.0',
      description   = 'R-Tree spatial index for Python GIS',
      license       = 'LGPL',
      keywords      = 'gis spatial index',
      author        = 'Sean Gillies',
      author_email  = 'sgillies@frii.com',
      maintainer    = 'Howard Butler',
      maintainer_email  = 'hobu.inc@gmail.com',
      url   = 'http://trac.gispython.org/lab/wiki/Rtree',
      long_description = readme_text,
      packages      = ['rtree'],
      ext_modules   = [libsidx],
      install_requires = ['setuptools'],
      test_suite = 'tests.test_suite',
      data_files = data_files,
      zip_safe = False,
      classifiers   = [
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
        'Operating System :: OS Independent',
        'Programming Language :: C',
        'Programming Language :: C++',
        'Programming Language :: Python',
        'Topic :: Scientific/Engineering :: GIS',
        'Topic :: Database',
        ],
)


@@ -1426,24 +1426,27 @@
     
-= 'Howard Butler
+    = 'Sean Gillies
 ',%0A 
@@ -1475,22 +1475,21 @@
  = '
-hobu.inc@gmail
+sgillies@frii
 .com

revert maintainer change because of PyPI