forked from TileStache/TileStache
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
44 lines (34 loc) · 1.38 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
#!/usr/bin/env python
from distutils.core import setup
import pkg_resources
import sys
version = open('VERSION', 'r').read().strip()
def is_installed(name):
try:
pkg_resources.get_distribution(name)
return True
except:
return False
requires = ['ModestMaps >=1.3.0','simplejson', 'Werkzeug']
# Soft dependency on PIL or Pillow
if is_installed('Pillow') or sys.platform == 'win32':
requires.append('Pillow')
else:
requires.append('PIL')
setup(name='TileStache',
version=version,
description='A stylish alternative for caching your map tiles.',
author='Michal Migurski',
author_email='[email protected]',
url='http://tilestache.org',
install_requires=requires,
packages=['TileStache',
'TileStache.Vector',
'TileStache.Goodies',
'TileStache.Goodies.Caches',
'TileStache.Goodies.Providers',
'TileStache.Goodies.VecTiles'],
scripts=['scripts/tilestache-compose.py', 'scripts/tilestache-seed.py', 'scripts/tilestache-clean.py', 'scripts/tilestache-server.py', 'scripts/tilestache-render.py', 'scripts/tilestache-list.py'],
data_files=[('share/tilestache', ['TileStache/Goodies/Providers/DejaVuSansMono-alphanumeric.ttf'])],
download_url='http://tilestache.org/download/TileStache-%(version)s.tar.gz' % locals(),
license='BSD')