annotate setup.py @ 5:b235e08ebd04

cleaner recursion, eliminate parameters
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 18 Dec 2007 15:16:56 +0100
parents 4214d9245f8e
children 301673f39ff6
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
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
7 except:
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.