Skip to content

Commit

Permalink
updated setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
enricodvn committed Mar 3, 2020
1 parent e446dd7 commit e1f9f23
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
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/include/boost',
'/usr/local/include/boost'
],
libraries=[
"osrm",
Expand All @@ -17,7 +24,6 @@
"boost_iostreams",
"boost_thread",
],
library_dirs=["/usr/local/lib"],
language='c++',
extra_compile_args=["-std=c++14"],
extra_link_args=["-lrt"]
Expand All @@ -33,9 +39,10 @@
version='0.0.1',
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',
packages=find_packages(where='src'),
package_dir={'': 'src'},
zip_safe=False,
ext_modules=ext
)

0 comments on commit e1f9f23

Please sign in to comment.