from setuptools import setup, find_packages

try:
    from pyqt_distutils.build_ui import build_ui
    cmdclass={'build_ui': build_ui}
except ImportError:
    cmdclass={}
    pass

setup(
    name='gauges',
    version='0.1',
    description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo',
    url='http://github.com/estan/gauges',
    author='Elvis Stansvik',
    license='License :: OSI Approved :: MIT License',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Communications',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
    ],
    packages=find_packages(),
    install_requires=[
        'autobahn',
        'twisted',
        'pyOpenSSL',
        'service_identity',
        'qt5reactor-fork',
    ],
    entry_points={
        'gui_scripts': [
            'gauges-qt=gauges.gauges_qt:main'
        ],
    },
    cmdclass=cmdclass
)

from setuptools import setup, find_packages

try:
    from pyqt_distutils.build_ui import build_ui
    cmdclass={'build_ui': build_ui}
except ImportError:
    cmdclass={}

setup(
    name='gauges',
    version='0.1',
    description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo',
    url='http://github.com/estan/gauges',
    author='Elvis Stansvik',
    license='License :: OSI Approved :: MIT License',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Communications',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
    ],
    packages=find_packages(),
    install_requires=[
        'autobahn',
        'twisted',
        'pyOpenSSL',
        'service_identity',
        'qt5reactor-fork',
    ],
    entry_points={
        'gui_scripts': [
            'gauges-qt=gauges.gauges_qt:main'
        ],
    },
    cmdclass=cmdclass
)

Remove unneeded `pass` in except block.
Remove unneeded `pass` in except block.
