def configuration(parent_package='',top_path=None):
    from numpy.distutils.misc_util import Configuration

    config = Configuration('interfaces', parent_package, top_path)

    config.add_subpackage('fsl')

    config.add_data_dir('tests')
    config.add_data_dir('script_templates')

    return config

if __name__ == '__main__':
    from numpy.distutils.core import setup
    setup(**configuration(top_path='').todict())

@@ -170,16 +170,90 @@
 _path)%0A%0A
+    config.add_subpackage('afni')%0A    config.add_subpackage('freesurfer')%0A
     conf
@@ -277,17 +277,16 @@
 ('fsl')%0A
-%0A
     conf
@@ -296,26 +296,27 @@
 add_
-data_dir('tests
+subpackage('spm
 ')%0A
+%0A
     
@@ -354,16 +354,49 @@
 plates')
+%0A    config.add_data_dir('tests')
 %0A%0A    re

Update setup.py for interfaces.