__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",
)

@@ -484,16 +484,68 @@
 ension%0A%0A
+from pyDNase import __version__ as current_version%0A%0A
 setup(%0A 
@@ -579,15 +579,23 @@
 ion=
-%220.1.4%22
+current_version
 ,%0A  
@@ -1036,33 +1036,237 @@
     
-%22numpy%22,%0A        %22scipy%22,
+# Note - not enforcing versions for numpy, scipy, and matplotlib%0A        # Only basic functionality is used and ithenstallation of se libraries can be a pain%0A        %22numpy%22, #Tested on %3E=1.5.0%0A        %22scipy%22, #Tested on %3E=0.9.0
 %0A   
@@ -1283,16 +1283,33 @@
 lotlib%22,
+ #Tested on %3E=1.2
 %0A       
@@ -1315,16 +1315,25 @@
   %22pysam
+ %3E= 0.7.5
 %22,%0A     
@@ -1341,17 +1341,27 @@
   %22clint
-%22
+ %3E= 0.3.2%22,
 %0A    %5D,%0A

Enforce minimum versions for dependencies