-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (62 loc) · 2.09 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python
# For further information please check the README
#
# NOTE: A legal Intel license and installed version of the
# Intel IPP library bundle is needed.
# Check README for details.
import sys, os, re
from distutils.core import setup, Extension
MAJOR_VERSION=0
MINOR_VERSION=1
BUILD_VERSION=0
DEBUG_IPP=0
EXTRA_COMPILE_ARGS= [
'-Wall',
'-g'
]
DEFINE_MACROS= [('DEBUG_IPP', '%i' % DEBUG_IPP),('NDEBUG', '1')]
MODULES=[]
print "===[ pyipp setup ]==="
# authors and license information
f= open('LICENSE', 'r')
print f.read()
# process configuration for seperate modules
print "=== searching for registerable modules ==="
for f in os.listdir('conf/modules'):
if re.match(r'^.*\.pyc$', f) or re.match(r'^__init__.py$', f):
continue
c= f.split('.')
m= __import__("conf.modules.%s" % (c[0],),\
globals(), locals(), ["module"])
print "imported module %s" % (c[0],), "registering %s" % m.module
MODULES.append(m.module)
print "=== registering modules done ==="
# process common module globals
for m in MODULES:
m.define_macros=DEFINE_MACROS
m.extra_compile_args= EXTRA_COMPILE_ARGS
#unittests
import test.unit.pyipp_unittest as put
put.doTest()
# python distutils setup file
setup(name='pyipp',
version='%i.%i.%i' % (MAJOR_VERSION, MINOR_VERSION, BUILD_VERSION),
packages=['pyipp', 'pyipp.ipp', 'pyipp.ipps'],
package_dir={'': 'src'},
#py_modules=['pyipp.ipp.ipp', 'pyipp.ipps.ippch'],
description='pyipp - Intel IPP Python Bindings',
long_description='''
Python Bindings for the Intel(R)
Integrated Performance Primitives Library (IPP)
NOTICE: A legal Intel license and installed
version of Intels IPP library bundle is needed.
Further information at:
http://software.intel.com/en-us/articles/intel-ipp/
''',
author='Christian Staffa',
author_email='[email protected]',
url='https://github.com/haai/pyipp.git',
platforms='linux',
license='New-BSD',
ext_modules=MODULES,
)