Skip to content
Commit 76b81fd0 authored by Richard Neill's avatar Richard Neill
Browse files

tools: Provide generic class for executing Python scripts within a venv



This patch adds a top-level directory to support tooling within the repository.

To this directory, this patch refactors the virtual environment component of
the code checking tool into a generic ModulesVirtualEnv class that may be used
to generally run Python scripts within a venv.

ModulesVirtualEnv takes a runner script, arguments, and the Python package
dependencies required to run the script with those arguments. A Python virtual
environment is then created, in which the dependencies are installed, and the
script is called from that virtual environment context as a subprocess.

Issue-Id: SCM-2584
Issue-Id: SCM-2585
Change-Id: I4835c5e3e02ccd448de4dcedeee3f3e61f4a8a13
Signed-off-by: Richard Neill's avatarRichard Neill <richard.neill@arm.com>
parent a2a7e138
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment