import os

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


setup(name = "clrsvsim",
      version = "0.0.2",
      description = "Color Genomics Structural Variant Simulator",
      author = "Color Genomics",
      author_email = "dev@color.com",
      url = "https://github.com/ColorGenomics/clrsvsim",
      packages = ["clrsvsim"],
      install_requires=[
        'cigar==0.1.3',
        'mock==2.0.0',
        'nose==1.3.7',
        'numpy==1.10.1',
        'preconditions==0.1',
        'pyfasta==0.5.2',
        'pysam==0.10.0',
      ],
      license = "Apache-2.0",
)

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


setup(name = "clrsvsim",
      version = "0.0.2",
      description = "Color Genomics Structural Variant Simulator",
      author = "Color Genomics",
      author_email = "dev@color.com",
      url = "https://github.com/ColorGenomics/clrsvsim",
      packages = ["clrsvsim"],
      install_requires=[
        'cigar==0.1.3',
        'mock==2.0.0',
        'nose==1.3.7',
        'numpy==1.10.1',
        'preconditions==0.1',
        'pyfasta==0.5.2',
        'pysam==0.10.0',
      ],
      license = "Apache-2.0",
)

Remove unneeded import, fix bare except
Remove unneeded import, fix bare except

The `os` module isn't needed, so we need not import it.

Additionally, a bare `except` clause is pretty much never desired, since
it includes all exceptions, including sigkills.

Instead, just check for an `ImportError`, since that's what we're really
trying to do: fall back on `distutils` if `setuptools` is not present.
