Installs the latest Python 3 environment via Homebrew. Apple removed native Python 3 from macOS, making this a critical deployment for developers and data scientists.
- Detection: Verifies if
python3exists viabrew list python. - Privilege Dropping: Safely switches from Intune's
rootcontext to the logged-in standard user. - Remediation: Installs the
pythonformula via Homebrew, ensuring thatpip3and standard libraries are correctly linked in the user's$PATH.
- Upload script:
install-python.sh - Run script as signed-in user: No (Requires root execution initially)