view setup.py @ 6:301673f39ff6 default tip

fix numpy import check
author pmeerw@pan
date Tue, 06 May 2008 22:24:13 +0200
parents 4214d9245f8e
children
line wrap: on
line source

from distutils.core import setup, Extension
from Pyrex.Distutils import build_ext
import sys

try:
    import numpy
except ImportError:
    print 'numpy required but not installed, exit.'
    sys.exit(1)

numpy_include_dir =  numpy.get_include()

module = Extension('_me', sources=['_me.pyx'], include_dirs=[numpy_include_dir])

setup (name = 'pymctf',
       version = '1.0',
       author = 'Peter Meerwald',
       author_email = 'pmeerw@pmeerw.net',
       description = 'Motion-compensated temporal filtering (MCTF)',
       py_modules = ['pymctf'],
       ext_modules = [module],
       cmdclass = {'build_ext': build_ext}
)

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.