Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added tilestache-compose.py to the setup scripts and added explicit M…

…odestMaps>=1.3.0 check
  • Loading branch information...
commit b118783a9ad1866f4a46e7ec65e64c58cf57cb52 1 parent 0e271f5
migurski migurski authored
Showing with 6 additions and 1 deletion.
  1. +5 −0 scripts/tilestache-compose.py
  2. +1 −1  setup.py
5 scripts/tilestache-compose.py
View
@@ -8,6 +8,11 @@
import TileStache
import ModestMaps
+mmaps_version = tuple(map(int, getattr(ModestMaps, '__version__', '0.0.0').split('.')))
+
+if mmaps_version < (1, 3, 0):
+ raise ImportError('tilestache-compose.py requires ModestMaps 1.3.0 or newer.')
+
class Provider (ModestMaps.Providers.IMapProvider):
""" Wrapper for TileStache Layer objects that makes them behave like ModestMaps Provider objects.
2  setup.py
View
@@ -16,7 +16,7 @@
'TileStache.Goodies',
'TileStache.Goodies.Caches',
'TileStache.Goodies.Providers'],
- scripts=['scripts/tilestache-render.py', 'scripts/tilestache-seed.py', 'scripts/tilestache-server.py'],
+ scripts=['scripts/tilestache-compose.py', 'scripts/tilestache-seed.py', 'scripts/tilestache-server.py', 'scripts/tilestache-render.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')
Please sign in to comment.
Something went wrong with that request. Please try again.