def pip_args(prefix):
 if (sys.platform == 'win32'):
  pip_path = join(prefix, 'Scripts', 'pip-script.py')
  py_path = join(prefix, 'python.exe')
 else:
  pip_path = join(prefix, 'bin', 'pip')
  py_path = join(prefix, 'bin', 'python')
 if (isfile(pip_path) and isfile(py_path)):
  ret = [py_path, pip_path]
  pip_version = subprocess.check_output((ret + ['-V'])).decode('utf-8').split()[1]
  major_ver = pip_version.split('.')[0]
  if (int(major_ver) >= 6):
   ret.append('--disable-pip-version-check')
  return ret
 else:
  return None

def pip_args ( prefix ) : if ( sys . platform == 'win32' ) : pip_path = join ( prefix , 'Scripts' , 'pip-script.py' ) py_path = join ( prefix , 'python.exe' ) else : pip_path = join ( prefix , 'bin' , 'pip' ) py_path = join ( prefix , 'bin' , 'python' ) if ( isfile ( pip_path ) and isfile ( py_path ) ) : ret = [ py_path , pip_path ] pip_version = subprocess . check_output ( ( ret + [ '-V' ] ) ) . decode ( 'utf-8' ) . split ( ) [ 1 ] major_ver = pip_version . split ( '.' ) [ 0 ] if ( int ( major_ver ) >= 6 ) : ret . append ( '--disable-pip-version-check' ) return ret else : return None
return the arguments required to invoke pip .