-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (30 loc) · 1.22 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
import os
from distutils.core import setup
from distutils.extension import Extension
import numpy as np
# extension paths
BA_path = os.path.join("mcba", "models", "impurity")
tab_path = os.path.join("mcba", "models", "tabulations")
setup(name='mcba',
version='0.1',
description='BA MC enumerations',
author='Evgeni Burovski',
author_email='evgeny.burovskiy@gmail.com',
packages=['mcba',
'mcba.models',
'mcba.models.impurity',
'mcba.models.tabulations',
],
# specifying the path to acpt_DBs seems to install all the tests,
# incl. those in mcba/models/impurity/tests etc
# otherwise, none are installed. Go figure.
package_data={'': ['tests/acpt_DBs/*.sqlite', 'tests/*py'],
},
# BA & tabulations helpers, compiled
ext_modules=[Extension(os.path.join(BA_path,"_BA_cyth"),
[os.path.join(BA_path,"_BA_cyth.c")]),
Extension(os.path.join(tab_path, "_spl_interp_feval"),
[os.path.join(tab_path, "_spl_interp_feval.c")]),
],
include_dirs = [np.get_include()],
)