-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·54 lines (48 loc) · 1.6 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
#!/usr/bin/env python
import sys
try:
from setuptools import setup
except:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
readme = file('doc/Readme.txt','rb').read()
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: GIS',
]
# We'd like to let debian install the /etc/featureserver.cfg,
# but put them in featureserver/featureserver.cfg using setuptools
# otherwise.
extra = { }
if "--debian" in sys.argv:
extra['data_files']=[('/etc', ['featureserver.cfg'])]
sys.argv.remove("--debian")
else:
extra['data_files']=[('FeatureServer', ['featureserver.cfg'])]
setup(name='FeatureServer',
version='1.12',
description='A server for geographic features on the web.',
long_description=readme,
author='MetaCarta Labs',
author_email='[email protected]',
url='http://featureserver.org/',
license="Clear BSD",
packages=['FeatureServer',
'FeatureServer.DataSource',
'FeatureServer.Service',
'vectorformats.Formats',
'vectorformats',
'web_request'
],
scripts=['featureserver.cgi', 'featureserver.fcgi',
'featureserver_install_config.py',
'featureserver_http_server.py'],
test_suite = 'tests.run_doc_tests',
zip_safe = False,
**extra
)