forked from peteshadbolt/qy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (44 loc) · 1.62 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import os
import sys
# list all the packages
packages=[]
packages.append('qy')
# simulation packages
packages.append('qy.simulation')
for p in ['combinadics', 'linear_optics', 'bulk_optics', 'permanent', 'detection_model', 'qi']:
packages.append('qy.simulation.'+p)
# other packages
packages.append('qy.analysis')
#packages.append('qy.formats')
#packages.append('qy.formats.counted_file')
packages.append('qy.util')
packages.append('qy.graphics')
packages.append('qy.settings')
packages.append('qy.hardware')
packages.append('qy.hardware.counting')
packages.append('qy.hardware.heaters')
packages.append('qy.hardware.heaters.nidaqmx')
packages.append('qy.graphics')
packages.append('qy.wx')
# SWIG/cython extensions
extensions=[]
combi_path=os.path.join('simulation','combinadics', 'combi.pyx')
extensions.append(Extension('qy.simulation.combinadics.combi', [combi_path]))
perm_path=os.path.join('simulation','permanent', 'perm.pyx')
extensions.append(Extension('qy.simulation.permanent.perm', [perm_path]))
#parserc = os.path.join('formats', 'counted_file', 'counted_file_parser.c')
#parserwrapc = os.path.join('formats', 'counted_file', 'counted_file_parser_wrap.c')
#cf = Extension('qy.formats.counted_file._counted_file_parser', sources=[parserc, parserwrapc])
#extensions.append(cf)
# setup
setup(name='qy',
version='1.0',
package_dir={'qy': ''},
packages=packages,
cmdclass = {'build_ext': build_ext},
ext_modules = extensions,
include_dirs = [numpy.get_include()])