-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
27 lines (22 loc) · 1.18 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
# -*- coding:utf-8 -*-
import numpy
from setuptools import setup, Extension, find_packages
include_dirs = [numpy.get_include()]
ising_module = Extension('ising', sources=['ising/ising_model.c'])
dp_optimizer_module = Extension('dp_optimizer',
sources=[
'shortest_path_opt/source/dp_info.c',
'shortest_path_opt/source/dp_optimizer.c',
],
include_dirs=include_dirs + ['shortest_path_opt/include/'])
sample_generator_module = Extension('sample_generator',
sources=['extend_lambdas/source/lambda_info_context.c',
'extend_lambdas/source/sample_generator.c'],
include_dirs=include_dirs + ["extend_lambdas/include/"])
setup(name='lambda_adaption',
py_modules=["lambda_adaption"],
packages=find_packages(),
version='1.0',
description='Package for lambda adaption algorithm and examples',
ext_modules=[ising_module, dp_optimizer_module, sample_generator_module]
)