forked from shapely/shapely
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (52 loc) · 1.86 KB
/
setup.py
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
53
54
55
56
57
58
import glob
import warnings
try:
from distribute_setup import use_setuptools
use_setuptools()
except:
warnings.warn(
"Failed to import distribute_setup, continuing without distribute.",
Warning)
from setuptools import setup, find_packages
import sys
readme_text = file('README.txt', 'rb').read()
setup_args = dict(
metadata_version = '1.2',
name = 'Shapely',
version = '1.2.7',
requires_python = '>=2.5,<3',
requires_external = 'libgeos_c (>=3.1)',
description = 'Geometric objects, predicates, and operations',
license = 'BSD',
keywords = 'geometry topology gis',
author = 'Sean Gillies',
author_email = '[email protected]',
maintainer = 'Sean Gillies',
maintainer_email = '[email protected]',
url = 'http://trac.gispython.org/lab/wiki/Shapely',
long_description = readme_text,
packages = ['shapely', 'shapely.geometry'],
scripts = ['examples/dissolve.py', 'examples/intersect.py'],
test_suite = 'shapely.tests.test_suite',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: GIS',
],
)
# Add DLLs for Windows
if sys.platform == 'win32':
import glob
if '(AMD64)' in sys.version:
setup_args.update(
data_files=[('DLLs', glob.glob('DLLs_AMD64/*.dll'))]
)
else:
setup_args.update(
data_files=[('DLLs', glob.glob('DLLs_x86/*.dll'))]
)
setup(**setup_args)