module documentation
Undocumented
Class |
|
Wrap 'os' module and 'open()' builtin for virtualizing setup scripts |
Class |
|
Restrict operations to a single subdirectory - pseudo-chroot |
Class |
|
A Context Manager that will save an exception, serialized, and restore it later. |
Class |
|
A setup script attempted to modify the filesystem outside the sandbox |
Exception |
|
An exception representing another Exception that could not be pickled. |
Function | hide |
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. |
Function | override |
Monkey-patch tempfile.tempdir with replacement, ensuring it exists |
Function | pushd |
Undocumented |
Function | run |
Run a distutils setup script, sandboxed in its directory |
Function | save |
Undocumented |
Function | save |
Context in which imported modules are saved. |
Function | save |
Undocumented |
Function | save |
Undocumented |
Function | setup |
Undocumented |
Constant | WRITE |
Undocumented |
Function | _clear |
Undocumented |
Function | _execfile |
Python 3 implementation of execfile. |
Function | _needs |
>>> _needs_hiding('setuptools') True >>> _needs_hiding('pkg_resources') True >>> _needs_hiding('setuptools_plugin') False >>> _needs_hiding('setuptools.__init__') True >>> _needs_hiding('distutils') True >>> _needs_hiding('os') False >>> _needs_hiding('Cython') True... |
Constant | _EXCEPTIONS |
Undocumented |
Constant | _MODULES |
Undocumented |
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.
Context in which imported modules are saved. Translates exceptions internal to the context into the equivalent exception outside the context.
Undocumented
Value |
|