Skip to content

Conversation

@ahmed-irfan
Copy link
Member

No description provided.

- Make brew update non-fatal
- Add fallback logic for pip installation (try pip3, python3 -m pip, or ensurepip first)
- This fixes the 'Install Dependencies' step failure on macOS runners
Add --user flag to all pip install commands on macOS to comply with
PEP 668 restrictions in Python 3.12+. This installs sympy to the
user directory instead of system-wide, which is allowed and safe.
…kages

- Add --break-system-packages flag along with --user to comply with PEP 668
- Make sympy installation non-fatal using set +e/set -e
- Since sympy is optional (tests work without it), continue even if installation fails
- This fixes the externally-managed-environment error on macOS CI runners
- Simplify installation approach: use --break-system-packages flag
- Ensure pip is available and up to date before installing sympy
- Remove error handling that made installation optional
- This ensures sympy is actually installed for tests to use
- Wrap sympy import in try/except to handle missing sympy gracefully
- Add _sympy_available flag to track sympy availability
- Automatically disable sympy checking when sympy is not available
- Add guards in SympyWrapper methods to handle missing sympy
- This allows tests to run even when sympy is not installed
@ahmed-irfan ahmed-irfan merged commit 0ffad69 into master Nov 15, 2025
16 checks passed
@ahmed-irfan ahmed-irfan deleted the Ovascos-python3-only branch November 15, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants