forked from mapbox/mapnik-vector-tile
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·24 lines (20 loc) · 781 Bytes
/
setup.py
File metadata and controls
executable file
·24 lines (20 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
import os
from setuptools import setup, Extension
mapnik_args = os.popen('mapnik-config --cflags').read()
setup(
name='mapnik_vector_tiles',
version='0.0.1',
author='Blake Thompson',
ext_modules=[
Extension('mapnik_vector_tiles',
['bindings/python/vector_tile.cpp', 'src/vector_tile.pb.cc'],
include_dirs=['/usr/include/python2.6', 'src'],
library_dirs=['/usr/local/lib', '/usr/lib', '/usr/lib64'],
libraries=['boost_python', 'mapnik', 'icuuc',
'boost_filesystem', 'boost_system', 'boost_thread', 'cairo',
'xml2', 'boost_regex', 'protobuf-lite'],
extra_compile_args=['-fpic', '-Wsign-compare', mapnik_args,]
)
],
)