File: setup.py

package info (click to toggle)
python-rtree 0.8.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 372 kB
  • ctags: 316
  • sloc: python: 1,611; makefile: 105; sh: 1
file content (52 lines) | stat: -rwxr-xr-x 1,821 bytes parent folder | download | duplicates (2)
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',
      ],
)