Skip to content
setup.py 2.53 KiB
Newer Older
Andreas Klöckner's avatar
Andreas Klöckner committed
#!/usr/bin/env python
# -*- coding: latin1 -*-

Andreas Klöckner's avatar
Andreas Klöckner committed
def main():
    import distribute_setup
    distribute_setup.use_setuptools()

    from setuptools import setup

    try:
        from distutils.command.build_py import build_py_2to3 as build_py
    except ImportError:
        # 2.x
        from distutils.command.build_py import build_py

    version_dict = {}
    init_filename = "pytential/version.py"
    exec(compile(open(init_filename, "r").read(), init_filename, "exec"),
            version_dict)
Andreas Klöckner's avatar
Andreas Klöckner committed

    setup(name="pytential",
          version=version_dict["VERSION_TEXT"],
          description="Evaluate layer and volume potentials accurately. "
          "Solve integral equations.",
Andreas Klöckner's avatar
Andreas Klöckner committed
          long_description=open("README.rst", "rt").read(),
          author="Andreas Kloeckner",
          author_email="inform@tiker.net",
Andreas Klöckner's avatar
Andreas Klöckner committed
          url="http://wiki.tiker.net/Pytential",
          classifiers=[
              'Development Status :: 3 - Alpha',
              'Intended Audience :: Developers',
              'Intended Audience :: Other Audience',
              'Intended Audience :: Science/Research',
              'License :: OSI Approved :: MIT License',
              'Natural Language :: English',
              'Programming Language :: Python',
              # We use conditional expressions, so 2.5 is the bare minimum.
              'Programming Language :: Python :: 2.5',
              'Programming Language :: Python :: 2.6',
              'Programming Language :: Python :: 2.7',
              # 3.x has not yet been tested.
              'Topic :: Scientific/Engineering',
              'Topic :: Scientific/Engineering :: Information Analysis',
              'Topic :: Scientific/Engineering :: Mathematics',
              'Topic :: Scientific/Engineering :: Visualization',
              'Topic :: Software Development :: Libraries',
              'Topic :: Utilities',
              ],
Andreas Klöckner's avatar
Andreas Klöckner committed

          packages=[
              "pytential",
              "pytential.mesh",
              "pytential.discretization",
              "pytential.discretization.qbx",
              "pytential.symbolic",
              "pytential.symbolic.pde",
              ],
Andreas Klöckner's avatar
Andreas Klöckner committed

          install_requires=[
              "pytest>=2.3",

              "modepy>=2013.3",
              "boxtree>=2013.1",
              "pymbolic>=2013.2",
              "pyopencl>=2013.1",
              "sumpy>=2013.1",
              "loo.py>=2013.1beta",
Andreas Klöckner's avatar
Andreas Klöckner committed
              ],

          # 2to3 invocation
          cmdclass={'build_py': build_py})


if __name__ == '__main__':
    main()