from setuptools import setup, find_packages

from dimod import __version__, __author__, __description__, __authoremail__

install_requires = ['decorator>=4.1.0']
extras_require = {'all': ['numpy']}

packages = ['dimod',
            'dimod.responses',
            'dimod.composites',
            'dimod.samplers']

setup(
    name='dimod',
    version=__version__,
    author=__author__,
    author_email=__authoremail__,
    description=__description__,
    url='https://github.com/dwavesystems/dimod',
    download_url='https://github.com/dwavesys/dimod/archive/0.1.1.tar.gz',
    license='Apache 2.0',
    packages=packages,
    install_requires=install_requires,
    extras_require=extras_require,
)

from setuptools import setup, find_packages

from dimod import __version__, __author__, __description__, __authoremail__, _PY2

install_requires = ['decorator>=4.1.0']
if _PY2:
    # enum is built-in for python 3
    install_requires.append('enum')

extras_require = {'all': ['numpy']}

packages = ['dimod',
            'dimod.responses',
            'dimod.composites',
            'dimod.samplers']

setup(
    name='dimod',
    version=__version__,
    author=__author__,
    author_email=__authoremail__,
    description=__description__,
    url='https://github.com/dwavesystems/dimod',
    download_url='https://github.com/dwavesys/dimod/archive/0.1.1.tar.gz',
    license='Apache 2.0',
    packages=packages,
    install_requires=install_requires,
    extras_require=extras_require,
)

Add enum for python2 install
Add enum for python2 install
