-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
48 lines (45 loc) · 1.28 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
from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
ext = cythonize(
[
Extension(
'pyosrm',
sources=['**/*.pyx'],
include_dirs=[
'/usr/local/include/osrm',
'/usr/include/boost',
'/usr/local/include/boost'
],
libraries=[
"osrm",
"boost_system",
"boost_filesystem",
"boost_iostreams",
"boost_thread",
],
language='c++',
extra_compile_args=["-std=c++14"],
extra_link_args=["-lrt"]
)
],
compiler_directives={
'language_level' : "3"
},
)
setup(
name='pyosrm',
version='0.0.2',
license='MIT',
description='Cython wrapper of osrm-backend to be used in Python',
long_description=long_description,
long_description_content_type='text/markdown',
author='Enrico Davini',
url='https://github.com/enricodvn/pyosrm',
zip_safe=False,
ext_modules=ext
)