setup.py 2.17 KB
Newer Older
Marco Selig's avatar
Marco Selig committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
## NIFTY (Numerical Information Field Theory) has been developed at the
## Max-Planck-Institute for Astrophysics.
##
## Copyright (C) 2013 Max-Planck-Society
##
## Author: Marco Selig
## Project homepage: <http://www.mpa-garching.mpg.de/ift/nifty/>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.

from distutils.core import setup
23 24 25 26
#from Cython.Build import cythonize
from distutils.extension import Extension
from Cython.Distutils import build_ext
import sys
Marco Selig's avatar
Marco Selig committed
27
import os
28 29 30
import numpy

include_dirs = [numpy.get_include()]
Marco Selig's avatar
Marco Selig committed
31

32 33 34
#os.environ["CC"] = "g++-4.8"
#os.environ["CXX"] = "g++-4.8"

35
ext_modules=[Extension(
36
                   "line_integrator",
37 38
                   ["operators/line_integrator.pyx"],
                   include_dirs=include_dirs)]# "vector.pxd"],
39
                   #language='c++')]
40

Marco Selig's avatar
Marco Selig committed
41

Marco Selig's avatar
Marco Selig committed
42
setup(name="ift_nifty",
43
      version="1.0.7",
Marco Selig's avatar
Marco Selig committed
44 45
      author="Marco Selig",
      author_email="mselig@mpa-garching.mpg.de",
Marco Selig's avatar
Marco Selig committed
46 47 48
      maintainer="Theo Steininger",
      maintainer_email="theos@mpa-garching.mpg.de",
      description="Numerical Information Field Theory",
Marco Selig's avatar
Marco Selig committed
49
      url="http://www.mpa-garching.mpg.de/ift/nifty/",
50 51
      packages=["nifty", "nifty.demos", "nifty.rg", "nifty.lm",
                "nifty.operators", "nifty.dummys", "nifty.config"],
52 53 54 55
      cmdclass={'build_ext': build_ext},
      ext_modules = ext_modules,
      #ext_modules=cythonize(["operators/line_integrator_vector.pyx"]),

Marco Selig's avatar
Marco Selig committed
56
      package_dir={"nifty": ""},
Marco Selig's avatar
Marco Selig committed
57
      data_files=[(os.path.expanduser('~') + "/.nifty", ["nifty_config"])],
58 59
      package_data={'nifty.demos' : ['demo_faraday_map.npy'],
                    },
Marco Selig's avatar
Marco Selig committed
60
      license="GPLv3")
Marco Selig's avatar
Marco Selig committed
61

62 63