forked from joeydumont/wignerSymbols
-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
34 lines (28 loc) · 852 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
30
31
32
33
from distutils.core import setup, Extension
import os, glob, numpy
__version__ = '0.0.1'
def indir(dir, files): return [dir+f for f in files]
def globdir(dir, files):
rv = []
for f in files: rv += glob.glob(dir+f)
return rv
setup(name = 'wignerpy',
version = __version__,
description = __doc__,
long_description = __doc__,
license = 'GPL',
author = 'Joey Dumont, Jeff Zheng',
author_email = '',
url = '',
package_dir = {'wignerpy':'src'},
packages = ['wignerpy'],
ext_modules = [
Extension('wignerpy._wignerpy',
globdir('src/_wignerpy/',
['*.cpp', '*.c', '*.cc']),
include_dirs = ['src/_wignerpy/include', numpy.get_include()],
extra_compile_args=['-Wno-write-strings', '-O3']
)
],
scripts = glob.glob('scripts/*'),
)