#!/usr/bin/env python """SimPEG: Simulation and Parameter Estimation in Geophysics SimPEG is a python package for simulation and gradient based parameter estimation in the context of geophysical applications. """ from distutils.core import setup from setuptools import find_packages from distutils.extension import Extension import numpy as np CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] from distutils.core import setup try: from Cython.Build import cythonize USE_CYTHON = True except Exception, e: USE_CYTHON = False ext = '.pyx' if USE_CYTHON else '.c' cython_files = [ "SimPEG/Utils/interputils_cython", "SimPEG/Mesh/TreeUtils" ] extensions = [Extension(f, [f+ext]) for f in cython_files] if USE_CYTHON: from Cython.Build import cythonize extensions = cythonize(extensions) import os, os.path with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name = "SimPEG", version = "0.1.3", packages = find_packages(), install_requires = ['numpy>=1.7', 'scipy>=0.13', 'Cython' ], author = "Rowan Cockett", author_email = "rowan@3ptscience.com", description = "SimPEG: Simulation and Parameter Estimation in Geophysics", long_description = LONG_DESCRIPTION, license = "MIT", keywords = "geophysics inverse problem", url = "http://simpeg.xyz/", download_url = "http://github.com/simpeg/simpeg", classifiers=CLASSIFIERS, platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3 = False, include_dirs=[np.get_include()], ext_modules = extensions )