-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·38 lines (30 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
34
35
36
from distutils.core import setup, Extension
from Cython.Distutils import build_ext
import numpy
import sys
if sys.version_info[:2] < (2, 6):
package_dir = None
else:
package_dir = {'lulu': 'lulu'}
def cext(name):
return Extension('lulu.%s' % name, ['lulu/%s.pyx' % name],
include_dirs=[numpy.get_include()])
setup(name='lulu',
version='1.0',
description='Fast and efficient implementation of the 2D '
'discrete pulse transform (LULU-operator)',
author='Stefan van der Walt',
author_email='stefan@sun.ac.za',
license='GPL',
url='http://dip.sun.ac.za/~stefan/code/lulu.git',
# -----
cmdclass={'build_ext': build_ext},
ext_modules=[cext('int_array'),
cext('connected_region'),
cext('connected_region_handler'),
cext('ccomp'),
cext('base')],
package_data={'': ['*.txt', '*.png', '*.jpg']},
packages=['lulu', 'lulu.tests'],
package_dir=package_dir,
)