1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
#!/usr/bin/env python
from setuptools import setup
import rtree
# Get text from README.txt
with open('docs/source/README.txt', 'r') as fp:
readme_text = fp.read()
import os
if os.name == 'nt':
data_files = [('Lib/site-packages/rtree',
[os.environ['SPATIALINDEX_LIBRARY']
if 'SPATIALINDEX_LIBRARY' in os.environ else
r'D:\libspatialindex\bin\spatialindex.dll',
os.environ['SPATIALINDEX_C_LIBRARY']
if 'SPATIALINDEX_C_LIBRARY' in os.environ else
r'D:\libspatialindex\bin\spatialindex_c.dll'])]
else:
data_files = None
setup(
name = 'Rtree',
version = rtree.__version__,
description = 'R-Tree spatial index for Python GIS',
license = 'LGPL',
keywords = 'gis spatial index r-tree',
author = 'Sean Gillies',
author_email = 'sean.gillies@gmail.com',
maintainer = 'Howard Butler',
maintainer_email = 'hobu@hobu.net',
url = 'http://toblerity.github.com/rtree/',
long_description = readme_text,
packages = ['rtree'],
install_requires = ['setuptools'],
test_suite = 'tests.test_suite',
data_files = data_files,
zip_safe = False,
classifiers = [
'Development Status :: 5 - Production/Stable',
'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',
],
)
|