-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (38 loc) · 1.23 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
from distutils.core import setup, Extension
from distutils.sysconfig import get_python_inc, get_python_lib
import os
import sys
import numpy
###################################################################
# build the extension
#
define_macros = []
undef_macros = []
extra_compile_args = []
include_dirs = []
libraries = []
library_dirs = []
# Use NumPy instead of Numeric or numarray
make_extension = Extension
include_dirs.append(numpy.get_include())
undef_macros.append('USE_NUMARRAY')
if not os.name == "posix":
raise Exception, "os not supported"
ext = make_extension('_eventdft_c',
['eventdft_wrap.c', 'period.c', 'utils.c'],
include_dirs=include_dirs,
libraries=libraries,
library_dirs=library_dirs,
define_macros=define_macros,
extra_compile_args=extra_compile_args)
###################################################################
# the package
#
setup(name="eventdft",
version="0.99",
description="Python interfaces to event_DFT",
author="Scott Ransom",
author_email="[email protected]",
packages=[''],
package_dir={'eventdft':'eventdft_src'},
ext_modules=[ext])