@task
@timed
def install_python_prereqs():
 if no_prereq_install():
  print NO_PREREQ_MESSAGE
  return
 uninstall_python_packages()
 files_to_fingerprint = list(PYTHON_REQ_FILES)
 files_to_fingerprint.append(sysconfig.get_python_lib())
 src_dir = os.path.join(sys.prefix, 'src')
 if os.path.isdir(src_dir):
  files_to_fingerprint.append(src_dir)
 this_file = __file__
 if this_file.endswith('.pyc'):
  this_file = this_file[:(-1)]
 files_to_fingerprint.append(this_file)
 prereq_cache('Python prereqs', files_to_fingerprint, python_prereqs_installation)

@ task @ timed def install_python_prereqs ( ) : if no_prereq_install ( ) : print NO_PREREQ_MESSAGE return uninstall_python_packages ( ) files_to_fingerprint = list ( PYTHON_REQ_FILES ) files_to_fingerprint . append ( sysconfig . get_python_lib ( ) ) src_dir = os . path . join ( sys . prefix , 'src' ) if os . path . isdir ( src_dir ) : files_to_fingerprint . append ( src_dir ) this_file = __file__ if this_file . endswith ( '.pyc' ) : this_file = this_file [ : ( - 1 ) ] files_to_fingerprint . append ( this_file ) prereq_cache ( 'Python prereqs' , files_to_fingerprint , python_prereqs_installation )
installs python prerequisites .