OpenQuizz
Une application de gestion des contenus pédagogiques
pip._vendor.pep517.in_process._in_process Namespace Reference

Data Structures

class  _DummyException
 
class  BackendInvalid
 
class  BackendUnavailable
 
class  GotUnsupportedOperation
 
class  HookMissing
 

Functions

def write_json (obj, path, **kwargs)
 
def read_json (path)
 
def contained_in (filename, directory)
 
def get_requires_for_build_wheel (config_settings)
 
def prepare_metadata_for_build_wheel (metadata_directory, config_settings, _allow_fallback)
 
def build_wheel (wheel_directory, config_settings, metadata_directory=None)
 
def get_requires_for_build_sdist (config_settings)
 
def build_sdist (sdist_directory, config_settings)
 
def main ()
 

Variables

 WHEEL_BUILT_MARKER
 
 HOOK_NAMES
 

Detailed Description

This is invoked in a subprocess to call the build backend hooks.

It expects:
- Command line args: hook_name, control_dir
- Environment variables:
  PEP517_BUILD_BACKEND=entry.point:spec
  PEP517_BACKEND_PATH=paths (separated with os.pathsep)
- control_dir/input.json:
  - {"kwargs": {...}}

Results:
- control_dir/output.json
  - {"return_val": ...}

Function Documentation

◆ build_sdist()

def pip._vendor.pep517.in_process._in_process.build_sdist (   sdist_directory,
  config_settings 
)
Invoke the mandatory build_sdist hook.

◆ build_wheel()

def pip._vendor.pep517.in_process._in_process.build_wheel (   wheel_directory,
  config_settings,
  metadata_directory = None 
)
Invoke the mandatory build_wheel hook.

If a wheel was already built in the
prepare_metadata_for_build_wheel fallback, this
will copy it rather than rebuilding the wheel.

◆ contained_in()

def pip._vendor.pep517.in_process._in_process.contained_in (   filename,
  directory 
)
Test if a file is located within the given directory.

◆ get_requires_for_build_sdist()

def pip._vendor.pep517.in_process._in_process.get_requires_for_build_sdist (   config_settings)
Invoke the optional get_requires_for_build_wheel hook

Returns [] if the hook is not defined.

◆ get_requires_for_build_wheel()

def pip._vendor.pep517.in_process._in_process.get_requires_for_build_wheel (   config_settings)
Invoke the optional get_requires_for_build_wheel hook

Returns [] if the hook is not defined.

◆ main()

def pip._vendor.pep517.in_process._in_process.main ( )

◆ prepare_metadata_for_build_wheel()

def pip._vendor.pep517.in_process._in_process.prepare_metadata_for_build_wheel (   metadata_directory,
  config_settings,
  _allow_fallback 
)
Invoke optional prepare_metadata_for_build_wheel

Implements a fallback by building a wheel if the hook isn't defined,
unless _allow_fallback is False in which case HookMissing is raised.

◆ read_json()

def read_json (   path)

◆ write_json()

def write_json (   obj,
  path,
**  kwargs 
)

Variable Documentation

◆ HOOK_NAMES

HOOK_NAMES

◆ WHEEL_BUILT_MARKER

WHEEL_BUILT_MARKER