def install_scipy():
 chdir(SRC_DIR)
 apt_command('build-dep python-scipy')
 if glob.glob('*scipy*.deb'):
  run_command('dpkg -i *scipy*.deb')
  return
 apt_command('source python-scipy')
 chdir('python-scipy*')
 sitecfg = open('site.cfg', 'w')
 sitecfg.write(NUMPY_SCIPY_SITE_CFG)
 sitecfg.close()
 _fix_atlas_rules()
 def _deb_failure_callback(retval):
  if (not glob.glob('../*numpy*.deb')):
   return False
  return True
 run_command('dpkg-buildpackage -rfakeroot -b', failure_callback=_deb_failure_callback)
 run_command('dpkg -i ../*scipy*.deb')

def install_scipy ( ) : chdir ( SRC_DIR ) apt_command ( 'build-dep python-scipy' ) if glob . glob ( '*scipy*.deb' ) : run_command ( 'dpkg -i *scipy*.deb' ) return apt_command ( 'source python-scipy' ) chdir ( 'python-scipy*' ) sitecfg = open ( 'site.cfg' , 'w' ) sitecfg . write ( NUMPY_SCIPY_SITE_CFG ) sitecfg . close ( ) _fix_atlas_rules ( ) def _deb_failure_callback ( retval ) : if ( not glob . glob ( '../*numpy*.deb' ) ) : return False return True run_command ( 'dpkg-buildpackage -rfakeroot -b' , failure_callback = _deb_failure_callback ) run_command ( 'dpkg -i ../*scipy*.deb' )
docstring for install_scipy .