Mercurial > hg > pymctf
comparison setup.py @ 0:4214d9245f8e
import
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Thu, 06 Sep 2007 13:45:48 +0200 |
| parents | |
| children | 301673f39ff6 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4214d9245f8e |
|---|---|
| 1 from distutils.core import setup, Extension | |
| 2 from Pyrex.Distutils import build_ext | |
| 3 import sys | |
| 4 | |
| 5 try: | |
| 6 import numpy | |
| 7 except: | |
| 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 ) |
