This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (47 loc) · 1.62 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
#!/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('docs/README.txt','rb').read()
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: GIS',
]
# We'd like to let debian install the /etc/tilecache.cfg,
# but put them in tilecache/tilecache.cfg using setuptools
# otherwise.
extra = { }
if "--debian" in sys.argv:
extra['data_files']=[('/etc', ['tilecache.cfg']),('.',['dev.ini'])]
sys.argv.remove("--debian")
else:
extra['data_files']=[('TileCache', ['tilecache.cfg']),('.',['dev.ini'])]
setup(name='TileCache',
version='2.10',
description='a web map tile caching system',
author='MetaCarta Labs',
author_email='[email protected]',
url='http://tilecache.org/',
long_description=readme,
packages=['TileCache', 'TileCache.Caches', 'TileCache.Services', 'TileCache.Layers', 'TileCache.Utils'],
scripts=['tilecache.cgi', 'tilecache.fcgi',
'tilecache_seed.py', 'tilecache_install_config.py',
'tilecache_clean.py', 'tilecache_http_server.py'],
zip_safe=False,
license="BSD",
classifiers=classifiers,
entry_points = """
[paste.app_factory]
main = TileCache.Service:paste_deploy_app
""",
**extra
)