Make bwrap check runtime only
Description
The goal of this MR is to make the check for bubblewrap be runtime rather than setup.py time.
As a side-effect, we ensure that the dummy sandbox knows why it was selected so that it can report such if it is invoked to try and run something.
Changes proposed in this merge request:
-
sandbox/_sandboxdummy.py
: Take a reason for use -
_platform/darwin.py
: Give reason for use of dummy sandbox -
_platform/linux.py
: Refactor checks for sandboxing -
_site.py
: Protect against failure runningbwrap --version
-
setup.py
: Change bwrap assertion to a warning
This merge request, when approved, will not close any issue per-se, but will make it possible to install bst on Linux systems where bwrap is not available, but will still report usefully at runtime.
Edited by Daniel Silverstone