Skip to content
Snippets Groups Projects
setup.py 2.22 KiB
Newer Older
#!/usr/bin/env python
# -*- coding: latin1 -*-

Andreas Klöckner's avatar
Andreas Klöckner committed
from setuptools import setup, find_packages
ver_dic = {}
Andreas Klöckner's avatar
Andreas Klöckner committed
version_file = open("loopy/version.py")
try:
    version_file_contents = version_file.read()
finally:
    version_file.close()

exec(compile(version_file_contents, "loopy/version.py", 'exec'), ver_dic)
setup(name="loo.py",
      version=ver_dic["VERSION_TEXT"],
      description="A code generator for array-based code on CPUs and GPUs",
      long_description=open("README.rst", "rt").read(),
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'Intended Audience :: Other Audience',
          'Intended Audience :: Science/Research',
          'License :: OSI Approved :: MIT License',
          'Natural Language :: English',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Topic :: Scientific/Engineering',
          'Topic :: Scientific/Engineering :: Information Analysis',
          'Topic :: Scientific/Engineering :: Mathematics',
          'Topic :: Scientific/Engineering :: Visualization',
          'Topic :: Software Development :: Libraries',
          'Topic :: Utilities',
          ],
          "cgen>=2016.1",
          "islpy>=2016.1",
      extras_require={
          "pyopencl":  [
              "pyopencl>=2015.2",
              ],
          "fortran":  [
              # Note that this is *not* regular 'f2py2e', this is
              # the Fortran parser from the (unfinished) third-edition
              # f2py, as linked below.
              "f2py>=0.3.1",
      dependency_links=[
          "hg+https://bitbucket.org/inducer/f2py#egg=f2py==0.3.1"
          ],

      scripts=["bin/loopy"],

      author="Andreas Kloeckner",
      url="http://mathema.tician.de/software/loopy",
      author_email="inform@tiker.net",
      license="MIT",
Andreas Klöckner's avatar
Andreas Klöckner committed
      packages=find_packages(),