OpenQuizz
Une application de gestion des contenus pédagogiques
BuildEnvironment Class Reference
Inheritance diagram for BuildEnvironment:
Collaboration diagram for BuildEnvironment:

Public Member Functions

def __init__ (self, cleanup=True)
 
def __enter__ (self)
 
def pip_install (self, reqs)
 
def __exit__ (self, exc_type, exc_val, exc_tb)
 

Data Fields

 save_path
 
 save_pythonpath
 

Static Public Attributes

 path
 

Detailed Description

Context manager to install build deps in a simple temporary environment

Based on code I wrote for pip, which is MIT licensed.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  cleanup = True 
)

Member Function Documentation

◆ __enter__()

def __enter__ (   self)

◆ __exit__()

def __exit__ (   self,
  exc_type,
  exc_val,
  exc_tb 
)

◆ pip_install()

def pip_install (   self,
  reqs 
)
Install dependencies into this env by calling pip in a subprocess

Field Documentation

◆ path

path
static

◆ save_path

save_path

◆ save_pythonpath

save_pythonpath

The documentation for this class was generated from the following file: