setup.py 1.82 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# NIFTy
# Copyright (C) 2017  Theo Steininger
#
# Author: Theo Steininger
#
# 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/>.
Marco Selig's avatar
Marco Selig committed
18

theos's avatar
theos committed
19
from setuptools import setup, find_packages
Marco Selig's avatar
Marco Selig committed
20
import os
21

csongor's avatar
csongor committed
22
from Cython.Build import cythonize
23
import numpy
csongor's avatar
csongor committed
24

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

csongor's avatar
csongor committed
27

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