|
OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
| class | AbstractSandbox |
| class | DirectorySandbox |
| class | ExceptionSaver |
| class | SandboxViolation |
| class | UnpickleableException |
Functions | |
| def | save_argv (repl=None) |
| def | save_path () |
| def | override_temp (replacement) |
| def | pushd (target) |
| def | save_modules () |
| def | save_pkg_resources_state () |
| def | setup_context (setup_dir) |
| def | hide_setuptools () |
| def | run_setup (setup_script, args) |
Variables | |
| WRITE_FLAGS | |
| def setuptools.sandbox.hide_setuptools | ( | ) |
Remove references to setuptools' modules from sys.modules to allow the invocation to import the most appropriate setuptools. This technique is necessary to avoid issues such as #315 where setuptools upgrading itself would fail to find a function declared in the metadata.
| def setuptools.sandbox.override_temp | ( | replacement | ) |
Monkey-patch tempfile.tempdir with replacement, ensuring it exists
| def setuptools.sandbox.pushd | ( | target | ) |
| def setuptools.sandbox.run_setup | ( | setup_script, | |
| args | |||
| ) |
Run a distutils setup script, sandboxed in its directory
| def setuptools.sandbox.save_argv | ( | repl = None | ) |
| def setuptools.sandbox.save_modules | ( | ) |
Context in which imported modules are saved. Translates exceptions internal to the context into the equivalent exception outside the context.
| def setuptools.sandbox.save_path | ( | ) |
| def setuptools.sandbox.save_pkg_resources_state | ( | ) |
| def setuptools.sandbox.setup_context | ( | setup_dir | ) |
| WRITE_FLAGS |