forked from pchanial/pyoperators
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
59 lines (55 loc) · 2.23 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python
import hooks
import numpy as np
import sys
from numpy.distutils.core import setup
from numpy.distutils.extension import Extension
VERSION = '0.13'
name = 'pyoperators'
long_description = open('README.rst').read()
keywords = 'scientific computing'
platforms = 'MacOS X,Linux,Solaris,Unix,Windows'
define_macros = [] if sys.version_info[0] == 2 else [('NPY_PY3K', None)]
ext_modules = [Extension("pyoperators.utils.cythonutils",
sources=["pyoperators/utils/cythonutils.pyx"],
include_dirs=[np.get_include()]),
Extension("pyoperators.utils.ufuncs",
sources=["pyoperators/utils/ufuncs.c.src"],
define_macros=define_macros)]
setup(name=name,
version=hooks.get_version(name, VERSION),
description='Operators and solvers for high-performance computing.',
long_description=long_description,
url='http://pchanial.github.com/pyoperators',
author='Pierre Chanial',
author_email='[email protected]',
maintainer='Pierre Chanial',
maintainer_email='[email protected]',
setup_requires=['numpy'],
install_requires=['numpy>=1.6', 'scipy>=0.9'],
extras_require = {
'fft': ['pyfftw'],
'mpi': ['mpi4py'],
'nonlinear': ['numexpr>=2'],
'wavelet': ['pywt'],
},
packages=['pyoperators', 'pyoperators.iterative', 'pyoperators.utils'],
platforms=platforms.split(','),
keywords=keywords.split(','),
cmdclass=hooks.cmdclass,
ext_modules=ext_modules,
license='CeCILL-B',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: C',
'Programming Language :: Cython',
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering'])