|
|
|
from __future__ import division, print_function |
|
|
|
|
|
from distutils.core import * |
|
from distutils import sysconfig |
|
|
|
|
|
import numpy |
|
|
|
|
|
numpy_include = numpy.get_include() |
|
|
|
|
|
_Array = Extension("_Array", |
|
["Array_wrap.cxx", |
|
"Array1.cxx", |
|
"Array2.cxx"], |
|
include_dirs = [numpy_include], |
|
) |
|
|
|
|
|
_Farray = Extension("_Farray", |
|
["Farray_wrap.cxx", |
|
"Farray.cxx"], |
|
include_dirs = [numpy_include], |
|
) |
|
|
|
|
|
_Vector = Extension("_Vector", |
|
["Vector_wrap.cxx", |
|
"Vector.cxx"], |
|
include_dirs = [numpy_include], |
|
) |
|
|
|
|
|
_Matrix = Extension("_Matrix", |
|
["Matrix_wrap.cxx", |
|
"Matrix.cxx"], |
|
include_dirs = [numpy_include], |
|
) |
|
|
|
|
|
_Tensor = Extension("_Tensor", |
|
["Tensor_wrap.cxx", |
|
"Tensor.cxx"], |
|
include_dirs = [numpy_include], |
|
) |
|
|
|
_Fortran = Extension("_Fortran", |
|
["Fortran_wrap.cxx", |
|
"Fortran.cxx"], |
|
include_dirs = [numpy_include], |
|
) |
|
|
|
|
|
setup(name = "NumpyTypemapTests", |
|
description = "Functions that work on arrays", |
|
author = "Bill Spotz", |
|
py_modules = ["Array", "Farray", "Vector", "Matrix", "Tensor", |
|
"Fortran"], |
|
ext_modules = [_Array, _Farray, _Vector, _Matrix, _Tensor, |
|
_Fortran] |
|
) |
|
|