old_contents: __author__ = 'Jason Piper'
  
  #Unfortunately, we have to ensure that the user has numpy is installed,
  #as pip is bad at installing numpy and scipy at the same time, and just breaks
  
  try:
      import numpy
  except ImportError:
      raise ImportError("Due to a quirk with pip, pyDNase requires numpy to be installed before starting setup")
      
  try:
      from setuptools import setup, Extension
  except ImportError:
      from distutils.core import setup
      from distutils.extension import Extension
  
  setup(
      name='pyDNase',
      version="0.1.4",
      description='DNase-seq analysis library',
      long_description=open('README.rst',"rt").read(),
      author='Jason Piper',
      author_email='j.piper@warwick.ac.uk',
      url='http://jpiper.github.io/pyDNase',
      license='GPLv3',
      ext_modules = [Extension("pyDNase/footprinting/fastbinom", ["pyDNase/footprinting/fastbinom.c"])],
      packages= [
          'pyDNase',
          'pyDNase.footprinting',
      ],
  
      install_requires=[
          "numpy",
          "scipy",
          "matplotlib",
          "pysam",
          "clint"
      ],
      
      package_data = {'pyDNase':["data/*"]},
      
      scripts=[
          "pyDNase/scripts/dnase_average_profile.py",
          "pyDNase/scripts/dnase_to_javatreeview.py",
          "pyDNase/scripts/dnase_wig_tracks.py",
          "pyDNase/scripts/wellington_footprints.py",
          "pyDNase/scripts/examples/example_footprint_scores.py",
          "pyDNase/scripts/dnase_to_JSON.py"],
      
      test_suite="test",
  )
  
new_contents: __author__ = 'Jason Piper'
  
  #Unfortunately, we have to ensure that the user has numpy is installed,
  #as pip is bad at installing numpy and scipy at the same time, and just breaks
  
  try:
      import numpy
  except ImportError:
      raise ImportError("Due to a quirk with pip, pyDNase requires numpy to be installed before starting setup")
      
  try:
      from setuptools import setup, Extension
  except ImportError:
      from distutils.core import setup
      from distutils.extension import Extension
  
  from pyDNase import __version__ as current_version
  
  setup(
      name='pyDNase',
      version=current_version,
      description='DNase-seq analysis library',
      long_description=open('README.rst',"rt").read(),
      author='Jason Piper',
      author_email='j.piper@warwick.ac.uk',
      url='http://jpiper.github.io/pyDNase',
      license='GPLv3',
      ext_modules = [Extension("pyDNase/footprinting/fastbinom", ["pyDNase/footprinting/fastbinom.c"])],
      packages= [
          'pyDNase',
          'pyDNase.footprinting',
      ],
  
      install_requires=[
          # Note - not enforcing versions for numpy, scipy, and matplotlib
          # Only basic functionality is used and ithenstallation of se libraries can be a pain
          "numpy", #Tested on >=1.5.0
          "scipy", #Tested on >=0.9.0
          "matplotlib", #Tested on >=1.2
          "pysam >= 0.7.5",
          "clint >= 0.3.2",
      ],
      
      package_data = {'pyDNase':["data/*"]},
      
      scripts=[
          "pyDNase/scripts/dnase_average_profile.py",
          "pyDNase/scripts/dnase_to_javatreeview.py",
          "pyDNase/scripts/dnase_wig_tracks.py",
          "pyDNase/scripts/wellington_footprints.py",
          "pyDNase/scripts/examples/example_footprint_scores.py",
          "pyDNase/scripts/dnase_to_JSON.py"],
      
      test_suite="test",
  )
  
subject: Enforce minimum versions for dependencies