forked from compmem/ptsa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (27 loc) · 1.03 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
from distutils.core import setup, Extension
from distutils.sysconfig import get_config_var
from distutils.extension import Extension
import os
import sys
# get the version loaded as vstr
execfile('ptsa/versionString.py')
# set up extensions
ext_modules = []
edf_ext = Extension("ptsa.data.edf.edf",
sources = ["ptsa/data/edf/edf.c",
"ptsa/data/edf/edfwrap.c",
"ptsa/data/edf/edflib.c"],
define_macros = [('_LARGEFILE64_SOURCE', None),
('_LARGEFILE_SOURCE', None)])
ext_modules.append(edf_ext)
# define the setup
setup(name='ptsa',
version=vstr,
maintainer=['Per B. Sederberg'],
maintainer_email=['[email protected]'],
url=['http://ptsa.sourceforge.net'],
packages=['ptsa','ptsa.tests','ptsa.data','ptsa.data.tests',
'ptsa.data.edf','ptsa.plotting','ptsa.plotting.tests',
'dimarray','dimarray.tests'],
ext_modules = ext_modules
)