OpenQuizz
Une application de gestion des contenus pédagogiques
pip._internal.operations.install.wheel Namespace Reference

Data Structures

class  File
 
class  MissingCallableSuffix
 
class  PipScriptMaker
 
class  ScriptFile
 
class  ZipBackedFile
 

Functions

def rehash (path, blocksize=1<< 20)
 
def csv_io_kwargs (mode)
 
def fix_script (path)
 
def wheel_root_is_purelib (metadata)
 
def get_entrypoints (distribution)
 
def message_about_scripts_not_on_PATH (scripts)
 
def get_csv_rows_for_installed (old_csv_rows, installed, changed, generated, lib_dir)
 
def get_console_script_specs (console)
 
def req_error_context (req_description)
 
def install_wheel (name, wheel_path, scheme, req_description, pycompile=True, warn_script_location=True, direct_url=None, requested=False)
 

Variables

 logger
 
 RecordPath
 
 InstalledCSVRow
 

Detailed Description

Support for installing and building the "wheel" binary package format.

Function Documentation

◆ csv_io_kwargs()

def pip._internal.operations.install.wheel.csv_io_kwargs (   mode)
Return keyword arguments to properly open a CSV file
in the given mode.

◆ fix_script()

def pip._internal.operations.install.wheel.fix_script (   path)
Replace #!python with #!/path/to/python
Return True if file was changed.

◆ get_console_script_specs()

def pip._internal.operations.install.wheel.get_console_script_specs (   console)
Given the mapping from entrypoint name to callable, return the relevant
console script specs.

◆ get_csv_rows_for_installed()

def pip._internal.operations.install.wheel.get_csv_rows_for_installed (   old_csv_rows,
  installed,
  changed,
  generated,
  lib_dir 
)
:param installed: A map from archive RECORD path to installation RECORD
    path.

◆ get_entrypoints()

def pip._internal.operations.install.wheel.get_entrypoints (   distribution)

◆ install_wheel()

def pip._internal.operations.install.wheel.install_wheel (   name,
  wheel_path,
  scheme,
  req_description,
  pycompile = True,
  warn_script_location = True,
  direct_url = None,
  requested = False 
)

◆ message_about_scripts_not_on_PATH()

def pip._internal.operations.install.wheel.message_about_scripts_not_on_PATH (   scripts)
Determine if any scripts are not on PATH and format a warning.
Returns a warning message if one or more scripts are not on PATH,
otherwise None.

◆ rehash()

def pip._internal.operations.install.wheel.rehash (   path,
  blocksize = 1 << 20 
)
Return (encoded_digest, length) for path using hashlib.sha256()

◆ req_error_context()

def pip._internal.operations.install.wheel.req_error_context (   req_description)

◆ wheel_root_is_purelib()

def pip._internal.operations.install.wheel.wheel_root_is_purelib (   metadata)

Variable Documentation

◆ InstalledCSVRow

InstalledCSVRow

◆ logger

logger

◆ RecordPath

RecordPath