-
Notifications
You must be signed in to change notification settings - Fork 85
/
setup_serial.py
executable file
·37 lines (33 loc) · 1.04 KB
/
setup_serial.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
#!/usr/bin/env python3
import os, sys
import numpy as np
from glob import glob
import subprocess as sp
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
include_dirs = [np.get_include(),
'/usr/local/include',
'3rd/pybind11/include',
'3rd/xtl/include',
'3rd/xtensor/include',
'3rd/xtensor-python/include']
library_dirs = []
libraries = [
'boost_timer'
]
ext = Extension('pykgraph',
language = 'c++',
extra_compile_args = ['-std=c++17', '-O3', '-g', '-Wno-sign-compare', '-Wno-parentheses', '-DDEBUG', '-Wno-narrowing', '-Wno-attributes', '-Wno-unknown-pragmas'],
include_dirs = include_dirs,
library_dirs = library_dirs,
libraries = libraries,
sources = ['python-api.cpp', 'kgraph.cpp', 'metric.cpp']
)
setup (name = 'pykgraph',
version = '0.0.1',
author = 'Wei Dong',
author_email = '[email protected]',
license = 'BSD',
description = '',
ext_modules = [ext],
)