#! /usr/bin/env python

from setuptools import setup

setup(name='jumeg',
      version='0.18',
      description='MEG data analysis at FZJ',
      url='http://github.com/jdammers/jumeg',
      download_url='http://github.com/jdammers/jumeg',
      author='Praveen Sripad',
      author_email='pravsripad@gmail.com',
      license='BSD (3-clause)',
      packages=['jumeg'],
      zip_safe=False)


@@ -1,11 +1,10 @@
 #!
- 
 /usr/bin
@@ -20,36 +20,400 @@
 on%0A%0A
-from setuptools import setup
+import os%0Afrom os import path as op%0A%0Afrom setuptools import setup%0A%0Adef package_tree(pkgroot):%0A    %22%22%22Get the submodule list.%22%22%22%0A    # adapted from mne-python%0A    path = os.path.dirname(__file__)%0A    subdirs = %5Bos.path.relpath(i%5B0%5D, path).replace(os.path.sep, '.')%0A               for i in os.walk(os.path.join(path, pkgroot))%0A               if '__init__.py' in i%5B2%5D%5D%0A    return sorted(subdirs)
 %0A%0Ase
@@ -724,17 +724,29 @@
 ges=
-%5B
+package_tree(
 'jumeg'
-%5D
+)
 ,%0A  
@@ -765,9 +765,8 @@
 =False)%0A
-%0A

Include directories to setup.py