# pylint: disable=c0111
try:
    from setuptools import setup
except ImportError:
    import ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup
setup(
    name='network-docopt',
    version='0.1.0',
    description="Network Docopt",
    url="https://github.com/dwalton76/NetworkDocopt",
    author='Daniel Walton',
    author_email='dwalton@cumulusnetworks.com',
    py_modules=['network_docopt'],
    install_requires=[
        'ipaddr'
    ],
    scripts=['bin/network-docopt-example'],
    data_files=[('usr/share/bash-completion/completions',
                 ['completions/network-docopt-example'])]
)

# pylint: disable=c0111
try:
    from setuptools import setup
except ImportError:
    import ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup
setup(
    name='network-docopt',
    version='0.1.0',
    description="Network Docopt",
    url="https://github.com/dwalton76/NetworkDocopt",
    author='Daniel Walton',
    author_email='dwalton@cumulusnetworks.com',
    py_modules=['network_docopt'],
#   breaks when loaded on py3 system
#   but is required for py2 system.
#   TODO: figure out how to resolve this cleanly
#    install_requires=[
#        'ipaddr'
#    ],
    scripts=['bin/network-docopt-example'],
    data_files=[('usr/share/bash-completion/completions',
                 ['completions/network-docopt-example'])]
)

remove ipaddr from installs_require..not sure how to tell only install when on py2..maybe custom script?