-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
29 lines (26 loc) · 884 Bytes
/
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
# from distutils.core import setup, Extension
import os
from setuptools import setup, Extension
os.environ["CC"] = "g++"
os.environ["CXX"] = "g++"
core_module = Extension(
'pyedmond/_core',
include_dirs=['/usr/include/python3.5/'],
libraries=['boost_python-py35', 'boost_graph'],
library_dirs=['/usr/lib/x86_64-linux-gnu/'],
extra_compile_args=['-std=c++11', '-O2', '-Wall'],
extra_link_args=['-Wl,--export-dynamic'],
sources=['pyedmond/_core.cpp']
)
setup(name='pyedmond',
version='0.1',
description='Edmond optimal branching algorithm in C++ wrapped by Python',
url='http://github.com/xiaohan2012/pyedmond',
author='Han Xiao',
author_email='xiaohan2012@gmail.com',
license='MIT',
packages=['pyedmond'],
ext_modules=[core_module],
setup_requires=['pytest-runner'],
tests_require=['pytest']
)