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

Data Structures

class  WheelMetadata
 

Functions

def pkg_resources_distribution_for_wheel (wheel_zip, name, location)
 
def parse_wheel (wheel_zip, name)
 
def wheel_dist_info_dir (source, name)
 
def read_wheel_metadata_file (source, path)
 
def wheel_metadata (source, dist_info_dir)
 
def wheel_version (wheel_data)
 
def check_compatibility (version, name)
 

Variables

 VERSION_COMPATIBLE
 
 logger
 

Detailed Description

Support functions for working with wheel files.

Function Documentation

◆ check_compatibility()

def pip._internal.utils.wheel.check_compatibility (   version,
  name 
)
Raises errors or warns if called with an incompatible Wheel-Version.

pip should refuse to install a Wheel-Version that's a major series
ahead of what it's compatible with (e.g 2.0 > 1.1); and warn when
installing a version only minor version ahead (e.g 1.2 > 1.1).

version: a 2-tuple representing a Wheel-Version (Major, Minor)
name: name of wheel or package to raise exception about

:raises UnsupportedWheel: when an incompatible Wheel-Version is given

◆ parse_wheel()

def pip._internal.utils.wheel.parse_wheel (   wheel_zip,
  name 
)
Extract information from the provided wheel, ensuring it meets basic
standards.

Returns the name of the .dist-info directory and the parsed WHEEL metadata.

◆ pkg_resources_distribution_for_wheel()

def pip._internal.utils.wheel.pkg_resources_distribution_for_wheel (   wheel_zip,
  name,
  location 
)
Get a pkg_resources distribution given a wheel.

:raises UnsupportedWheel: on any errors

◆ read_wheel_metadata_file()

def pip._internal.utils.wheel.read_wheel_metadata_file (   source,
  path 
)

◆ wheel_dist_info_dir()

def pip._internal.utils.wheel.wheel_dist_info_dir (   source,
  name 
)
Returns the name of the contained .dist-info directory.

Raises AssertionError or UnsupportedWheel if not found, >1 found, or
it doesn't match the provided name.

◆ wheel_metadata()

def pip._internal.utils.wheel.wheel_metadata (   source,
  dist_info_dir 
)
Return the WHEEL metadata of an extracted wheel, if possible.
Otherwise, raise UnsupportedWheel.

◆ wheel_version()

def pip._internal.utils.wheel.wheel_version (   wheel_data)
Given WHEEL metadata, return the parsed Wheel-Version.
Otherwise, raise UnsupportedWheel.

Variable Documentation

◆ logger

logger

◆ VERSION_COMPATIBLE

VERSION_COMPATIBLE