13.6 initialisePythonEnvironment.sh

Go To Top

Return to Build and Run Scripts

The initialisePythonEnvironment.sh script should create or update the project-local Python environment when the Phase 0 Baseline uses Python utilities.

The script should:

Create the project-local virtual environment if it does not exist.Use the approved Python version or version range from the applicable checklist instance.Install required Python dependencies from the approved dependency file.Avoid installing packages into the system Python environment.Report the Python interpreter path.Report installed package versions where useful.Fail clearly when the required Python version or package installation fails.The script should be safe to run more than once. It should update the virtual environment predictably without deleting unrelated local files.

If Phase 0 does not use Python utilities for a particular environment or role, the relevant checklist instance should mark the Python environment as not applicable for that environment.

© 2026 Dido Solutions, Inc. and Jackrabbit Consulting, Inc.