0
|
1 from distutils.core import setup, Extension
|
|
2 from Pyrex.Distutils import build_ext
|
|
3 import sys
|
|
4
|
|
5 try:
|
|
6 import numpy
|
6
|
7 except ImportError:
|
0
|
8 print 'numpy required but not installed, exit.'
|
|
9 sys.exit(1)
|
|
10
|
|
11 numpy_include_dir = numpy.get_include()
|
|
12
|
|
13 module = Extension('_me', sources=['_me.pyx'], include_dirs=[numpy_include_dir])
|
|
14
|
|
15 setup (name = 'pymctf',
|
|
16 version = '1.0',
|
|
17 author = 'Peter Meerwald',
|
|
18 author_email = 'pmeerw@pmeerw.net',
|
|
19 description = 'Motion-compensated temporal filtering (MCTF)',
|
|
20 py_modules = ['pymctf'],
|
|
21 ext_modules = [module],
|
|
22 cmdclass = {'build_ext': build_ext}
|
|
23 )
|