mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-26 15:40:09 -05:00
The auto-detection wasn't working because the CLI was always setting PYTHON_VERSIONS environment variable to all supported versions when --python-versions was not provided. Changes: - click_helpers.py: Return None instead of all versions when option not provided - helpers.py: Only set PYTHON_VERSIONS env var when explicitly specified - main.py: Update type hints to allow None for python_versions parameter Now the flow works correctly: 1. No --python-versions CLI option -> python_versions = None 2. None passed to Docker -> no PYTHON_VERSIONS env var set 3. Container auto-detects installed versions using pyenv 4. Tests run only on detected versions