try:
    from setuptools import setup
except ImportError:
    try:
        from setuptools.core import setup
    except ImportError:
        from distutils.core import setup

import versioneer
import os


def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name='metadatastore',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    license="BSD (3-clause)",
    url="https://github.com/NSLS-II/metadatastore",
    packages=['metadatastore', 'metadatastore.test', 'metadatastore.utils',
              'metadatastore.examples', 'metadatastore.examples.sample_data'],
    long_description=read('README.md'),
    classifiers=[
        "License :: OSI Approved :: BSD License",
        "Development Status :: 3 - Alpha",
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 3',
    ],
)

@@ -1,17 +1,8 @@
-try:%0A    
 from set
@@ -25,145 +25,23 @@
 etup
-%0Aexcept ImportError:%0A    try:%0A        from setuptools.core import setup%0A    except ImportError:%0A        from distutils.core import setup%0A
+, find_packages
 %0Aimp
@@ -366,148 +366,23 @@
 ges=
-%5B'metadatastore', 'metadatastore.test', 'metadatastore.utils',%0A              'metadatastore.examples', 'metadatastore.examples.sample_data'%5D
+find_packages()
 ,%0A  

use find_packages