Migrate TileStache to python3

Requires TileStache to be in absolute path

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2017-11-14 14:36:00 +01:00
parent 9a32c7bffd
commit e34daa118d
4 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,7 @@
#!/usr/bin/python2
#!/usr/bin/python3
import sys
sys.path.insert(0,'/data/fff/TileStache')
import os
import logging

View File

@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/python3
from distutils.core import setup
setup(name='dynmapnik',

View File

@ -3,7 +3,7 @@ Description=FF-MAP Tiles
After=syslog.target
[Service]
ExecStart=/usr/bin/uwsgi_python -s 127.0.0.1:3032 --eval 'import TileStache; application = TileStache.WSGITileServer("/usr/share/ffmap/tilestache.cfg")' --master --processes 4 --uid www-data --gid www-data --enable-threads
ExecStart=/usr/bin/uwsgi_python3 -s 127.0.0.1:3032 --eval 'import sys; sys.path.insert(0,"/data/fff/TileStache"); import TileStache; application = TileStache.WSGITileServer("/usr/share/ffmap/tilestache.cfg")' --master --processes 4 --uid www-data --gid www-data --enable-threads
Restart=always
KillSignal=SIGQUIT
Type=notify

View File

@ -21,4 +21,4 @@ systemctl daemon-reload
python3 setup.py install --force
(cd ffmap/mapnik; python2 setup.py install)
(cd ffmap/mapnik; python3 setup.py install)