annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
1 from distutils.core import setup, Extension
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
2 from Pyrex.Distutils import build_ext
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
3 import sys
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
4
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
5 try:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
6 import numpy
6
301673f39ff6 fix numpy import check
pmeerw@pan
parents: 0
diff changeset
7 except ImportError:
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
8 print 'numpy required but not installed, exit.'
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
9 sys.exit(1)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
10
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
11 numpy_include_dir = numpy.get_include()
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
12
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
13 module = Extension('_me', sources=['_me.pyx'], include_dirs=[numpy_include_dir])
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
14
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
15 setup (name = 'pymctf',
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
16 version = '1.0',
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
17 author = 'Peter Meerwald',
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
18 author_email = 'pmeerw@pmeerw.net',
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
19 description = 'Motion-compensated temporal filtering (MCTF)',
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
20 py_modules = ['pymctf'],
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
21 ext_modules = [module],
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
22 cmdclass = {'build_ext': build_ext}
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
23 )

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