"""Description

Setup script to install RnaChipIntegrator: analyses of ChIP-Seq and RNA-Seq data

Copyright (C) University of Manchester 2011-12 Peter Briggs, Leo Zeef & Ian Donaldson

This code is free software; you can redistribute it and/or modify it
under the terms of the Artistic License 2.0 (see the file LICENSE included
with the distribution).

This will install RnaChipIntegrator and its dependencies and provide the
'RnaChipIntegrator' command.
"""

from setuptools import setup
import RnaChipIntegrator
setup(
    name = "RnaChipIntegrator",
    version = RnaChipIntegrator.__version__,
    maintainer = 'Peter Briggs',
    maintainer_email = 'peter.briggs@manchester.ac.uk',
    license = 'Artistic License 2.0',
    py_modules = ['RnaChipIntegrator','Spreadsheet'],
    install_requires = ['xlwt >= 0.7.2',
                        'xlrd >= 0.7.1',
                        'xlutils >= 1.4.1'],
    entry_points = { 'console_scripts':
                         ['RnaChipIntegrator = RnaChipIntegrator:main',
                          'RnaChipIntegrator.py = RnaChipIntegrator:main']
                     },
    data_files = [ ('RnaChipIntegrator', ['README.markdown',
                                          'LICENSE',
                                          'INSTALL',
                                          'ChangeLog']),
                   ('RnaChipIntegrator/doc', ['doc/MANUAL.markdown',
                                              'doc/rnachipintegrator_nearestEdgetoPeak.png',
                                              'doc/rnachipintegrator_nearestTSStoSummit.png',
                                              'doc/rnachipintegrator_nearestTSStoPeak.png']) ]
)

@@ -136,17 +136,17 @@
 r 2011-1
-2
+5
  Peter B
@@ -162,17 +162,17 @@
 o Zeef &
- 
+%0A
 Ian Dona
@@ -182,283 +182,208 @@
 on%0A%0A
-This code is free software; you can redistribute it and/or modify it%0Aunder the terms of the Artistic License 2.0 (see the file LICENSE included%0Awith the distribution).%0A%0AThis will install RnaChipIntegrator and its dependencies and provide the%0A'RnaChipIntegrator' command.%0A%22%22%22%0A
+%22%22%22%0A%0A# Hack to acquire all scripts that we want to%0A# install into 'bin'%0Afrom glob import glob%0Ascripts = %5B%5D%0Afor pattern in ('bin/*.py',):%0A    scripts.extend(glob(pattern))%0A%0A# Setup for installation etc
 %0Afro
@@ -415,24 +415,24 @@
 %0Aimport 
-RnaChipI
+rnachipi
 ntegrato
@@ -486,24 +486,24 @@
 rsion = 
-RnaChipI
+rnachipi
 ntegrato
@@ -508,17 +508,19 @@
 tor.
-_
+get
 _version
 __,%0A
@@ -519,10 +519,10 @@
 sion
-__
+()
 ,%0A  
@@ -608,16 +608,54 @@
 ac.uk',%0A
+    packages = %5B'rnachipintegrator'%5D,%0A
     lice
@@ -681,12 +681,8 @@
 ense
- 2.0
 ',%0A 
@@ -869,213 +869,90 @@
     
-entry_points = %7B 'console_scripts':%0A                         %5B'RnaChipIntegrator = RnaChipIntegrator:main',%0A                          'RnaChipIntegrator.py = RnaChipIntegrator:main'%5D%0A                     %7D
+test_suite = 'nose.collector',%0A    tests_require = %5B'nose'%5D,%0A    scripts = scripts
 ,%0A  
@@ -989,16 +989,36 @@
 grator',
+%0A                   
  %5B'READM
@@ -1051,37 +1051,16 @@
         
-                     
 'LICENSE
@@ -1083,37 +1083,16 @@
         
-                     
 'INSTALL
@@ -1115,37 +1115,16 @@
         
-                     
 'ChangeL
@@ -1174,16 +1174,36 @@
 or/doc',
+%0A                   
  %5B'doc/M
@@ -1223,33 +1223,8 @@
 n',%0A
-                         
     
@@ -1291,33 +1291,8 @@
 g',%0A
-                         
     
@@ -1360,33 +1360,8 @@
 g',%0A
-                         
     

Update setup.py for new configuration.