
def configuration(parent_package='',top_path=None):
    from numpy.distutils.misc_util import Configuration
    config = Configuration('scipy',parent_package,top_path)
    #config.add_subpackage('cluster')
    #config.add_subpackage('fftpack')
    #config.add_subpackage('integrate')
    #config.add_subpackage('interpolate')
    #config.add_subpackage('io')
    config.add_subpackage('lib')
    config.add_subpackage('linalg')
    #config.add_subpackage('linsolve')
    #config.add_subpackage('maxentropy')
    config.add_subpackage('misc')
    #config.add_subpackage('montecarlo')
    config.add_subpackage('optimize')
    #config.add_subpackage('sandbox')
    #config.add_subpackage('signal')
    #config.add_subpackage('sparse')
    config.add_subpackage('special')
    config.add_subpackage('stats')
    #config.add_subpackage('ndimage')
    #config.add_subpackage('weave')
    config.make_svn_version_py()  # installs __svn_version__.py
    config.make_config_py()
    return config

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


def configuration(parent_package='',top_path=None):
    from numpy.distutils.misc_util import Configuration
    config = Configuration('scipy',parent_package,top_path)
    config.add_subpackage('cluster')
    config.add_subpackage('fftpack')
    config.add_subpackage('integrate')
    config.add_subpackage('interpolate')
    config.add_subpackage('io')
    config.add_subpackage('lib')
    config.add_subpackage('linalg')
    config.add_subpackage('linsolve')
    config.add_subpackage('maxentropy')
    config.add_subpackage('misc')
    #config.add_subpackage('montecarlo')
    config.add_subpackage('optimize')
    config.add_subpackage('sandbox')
    config.add_subpackage('signal')
    config.add_subpackage('sparse')
    config.add_subpackage('special')
    config.add_subpackage('stats')
    config.add_subpackage('ndimage')
    config.add_subpackage('weave')
    config.make_svn_version_py()  # installs __svn_version__.py
    config.make_config_py()
    return config

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

Fix problem with __all__ variable and update weave docs a bit. Update compiler_cxx too.
Fix problem with __all__ variable and update weave docs a bit.  Update compiler_cxx too.

  
  def configuration(parent_package='',top_path=None):
      from numpy.distutils.misc_util import Configuration
      config = Configuration('scipy',parent_package,top_path)
-     #config.add_subpackage('cluster')
+     config.add_subpackage('cluster')
-     #config.add_subpackage('fftpack')
+     config.add_subpackage('fftpack')
-     #config.add_subpackage('integrate')
+     config.add_subpackage('integrate')
-     #config.add_subpackage('interpolate')
+     config.add_subpackage('interpolate')
-     #config.add_subpackage('io')
+     config.add_subpackage('io')
      config.add_subpackage('lib')
      config.add_subpackage('linalg')
-     #config.add_subpackage('linsolve')
+     config.add_subpackage('linsolve')
-     #config.add_subpackage('maxentropy')
+     config.add_subpackage('maxentropy')
      config.add_subpackage('misc')
      #config.add_subpackage('montecarlo')
      config.add_subpackage('optimize')
-     #config.add_subpackage('sandbox')
+     config.add_subpackage('sandbox')
-     #config.add_subpackage('signal')
+     config.add_subpackage('signal')
-     #config.add_subpackage('sparse')
+     config.add_subpackage('sparse')
      config.add_subpackage('special')
      config.add_subpackage('stats')
-     #config.add_subpackage('ndimage')
+     config.add_subpackage('ndimage')
-     #config.add_subpackage('weave')
+     config.add_subpackage('weave')
      config.make_svn_version_py()  # installs __svn_version__.py
      config.make_config_py()
      return config
  
  if __name__ == '__main__':
      from numpy.distutils.core import setup
      setup(**configuration(top_path='').todict())
  
Fix problem with __all__ variable and update weave docs a bit. Update compiler_cxx too.
## Code Before:

def configuration(parent_package='',top_path=None):
    from numpy.distutils.misc_util import Configuration
    config = Configuration('scipy',parent_package,top_path)
    #config.add_subpackage('cluster')
    #config.add_subpackage('fftpack')
    #config.add_subpackage('integrate')
    #config.add_subpackage('interpolate')
    #config.add_subpackage('io')
    config.add_subpackage('lib')
    config.add_subpackage('linalg')
    #config.add_subpackage('linsolve')
    #config.add_subpackage('maxentropy')
    config.add_subpackage('misc')
    #config.add_subpackage('montecarlo')
    config.add_subpackage('optimize')
    #config.add_subpackage('sandbox')
    #config.add_subpackage('signal')
    #config.add_subpackage('sparse')
    config.add_subpackage('special')
    config.add_subpackage('stats')
    #config.add_subpackage('ndimage')
    #config.add_subpackage('weave')
    config.make_svn_version_py()  # installs __svn_version__.py
    config.make_config_py()
    return config

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

## Instruction:
Fix problem with __all__ variable and update weave docs a bit. Update compiler_cxx too.
## Code After:

def configuration(parent_package='',top_path=None):
    from numpy.distutils.misc_util import Configuration
    config = Configuration('scipy',parent_package,top_path)
    config.add_subpackage('cluster')
    config.add_subpackage('fftpack')
    config.add_subpackage('integrate')
    config.add_subpackage('interpolate')
    config.add_subpackage('io')
    config.add_subpackage('lib')
    config.add_subpackage('linalg')
    config.add_subpackage('linsolve')
    config.add_subpackage('maxentropy')
    config.add_subpackage('misc')
    #config.add_subpackage('montecarlo')
    config.add_subpackage('optimize')
    config.add_subpackage('sandbox')
    config.add_subpackage('signal')
    config.add_subpackage('sparse')
    config.add_subpackage('special')
    config.add_subpackage('stats')
    config.add_subpackage('ndimage')
    config.add_subpackage('weave')
    config.make_svn_version_py()  # installs __svn_version__.py
    config.make_config_py()
    return config

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