setup.py 2.16 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
## 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/>.

Theo Steininger's avatar
Theo Steininger committed
22
from setuptools import setup, find_packages
Marco Selig's avatar
Marco Selig committed
23
import os
24

csongor's avatar
csongor committed
25
from Cython.Build import cythonize
26
import numpy
csongor's avatar
csongor committed
27

28
exec(open('nifty/version.py').read())
Marco Selig's avatar
Marco Selig committed
29

csongor's avatar
csongor committed
30

Marco Selig's avatar
Marco Selig committed
31
setup(name="ift_nifty",
32
      version=__version__,
33 34
      author="Theo Steininger",
      author_email="theos@mpa-garching.mpg.de",
Marco Selig's avatar
Marco Selig committed
35
      description="Numerical Information Field Theory",
Marco Selig's avatar
Marco Selig committed
36
      url="http://www.mpa-garching.mpg.de/ift/nifty/",
Theo Steininger's avatar
Theo Steininger committed
37
      packages=find_packages(),
38
      package_dir={"nifty": "nifty"},
39
      zip_safe=False,
Jait Dixit's avatar
Jait Dixit committed
40 41
      ext_modules=cythonize([
          "nifty/operators/fft_operator/transformations/"
42 43 44
              "lm_transformation_factory.pyx",
          "nifty/spaces/lm_space/lm_helper.pyx",
          "nifty/operators/smoothing_operator/smooth_util.pyx"
Jait Dixit's avatar
Jait Dixit committed
45
      ]),
Theo Steininger's avatar
Theo Steininger committed
46
      include_dirs=[numpy.get_include()],
Theo Steininger's avatar
Theo Steininger committed
47
      dependency_links=[
Theo Steininger's avatar
Theo Steininger committed
48
        'git+https://gitlab.mpcdf.mpg.de/ift/keepers.git#egg=keepers-0.3.5',
49 50
        'git+https://gitlab.mpcdf.mpg.de/ift/d2o.git#egg=d2o-1.0.7'],
      install_requires=['keepers>=0.3.5', 'd2o>=1.0.7'],
Theo Steininger's avatar
Theo Steininger committed
51
      package_data={'nifty.demos': ['demo_faraday_map.npy'],
52
                    },
53 54 55 56
      license="GPLv3",
      classifiers=[
        "Development Status :: 4 - Beta",
        "Topic :: Utilities",
Theo Steininger's avatar
Theo Steininger committed
57 58 59
        "License :: OSI Approved :: GNU General Public License v3 "
        "or later (GPLv3+)"],
      )