#! /usr/bin/env python
try:
    from setuptools import setup
    HAVE_SETUPTOOLS = True
except ImportError:
    from distutils.core import setup
    HAVE_SETUPTOOLS = False

import numpy as np

VERSION = '1.0'

setup_kwargs = {
    "version": VERSION,
    "description": 'Code geneartion tools for transmutation solvers',
    "license": 'BSD 3-clause',
    "author": 'ERGS',
    "author_email": 'ergsonomic@googlegroups.com',
    "url": 'https://github.com/ergs/transmutagen',
    "download_url": "https://github.com/ergs/transmutagen/zipball/" + VERSION,
    "classifiers": [
        "License :: OSI Approved",
        "Programming Language :: Python",
        ],
    "zip_safe": False,
    "data_files": [("", ['LICENSE', 'README.md']),],
    "package_data": {'transmutagen': ['data/gensolve.json', 'data/CRAM_cache/*']},
    }


if __name__ == '__main__':
    setup(
        name='transmutagen',
        packages=['transmutagen'],
        long_description=open('README.md').read(),
        include_dirs = [np.get_include()],
        **setup_kwargs
        )

@@ -824,16 +824,246 @@
 %0A    %7D%0A%0A
+if HAVE_SETUPTOOLS:%0A    setup_kwargs%5B'install_requires'%5D = %5B%0A        'mpmath',%0A        'sympy',%0A        'matplotlib',%0A        'numpy',%0A        'scipy',%0A        'pyne',%0A        'jinja2',%0A        'gmpy2',%0A        'Cython'%0A        %5D%0A
 %0Aif __na

Add install_requires to setup.py