Skip to content

[Infra] Allow reusing populated tool environments with compatible Python versions - #1231

Merged
benvanik merged 1 commit into
ROCm:mainfrom
reginaldalfret:amd/issue-1229-setup-python-version
Oct 5, 2026
Merged

benvanik merged 1 commit into
ROCm:mainfrom
reginaldalfret:amd/issue-1229-setup-python-version

Conversation

@reginaldalfret

Copy link
Copy Markdown
Contributor

Summary

Removes strict actual_version != MANAGED_PYTHON_VERSION check when reusing pre-existing managed tool environments in build_tools/devtools/setup.py.

Problem

In build_tools/devtools/setup.py::setup_python_command(), setup raised a ValueError if a populated tool environment contained an active Python interpreter version other than 3.12, preventing developers from reusing valid environments built with compatible Python versions (e.g. 3.10, 3.11, 3.13).

Solution

Update setup_python_command() to verify that a usable Python interpreter exists within the populated environment rather than enforcing strict string equality with 3.12.

Fixes #1229

…ble Python versions

Signed-off-by: reginaldalfret <reginaldalfret@gmail.com>
@reginaldalfret
reginaldalfret requested a review from a team as a code owner October 4, 2026 04:10
@benvanik benvanik changed the title fix(devtools): allow reusing populated tool environments with compatible Python versions [Infra] Allow reusing populated tool environments with compatible Python versions Oct 5, 2026
@benvanik
benvanik merged commit 3dad07b into ROCm:main Oct 5, 2026
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.

[devtools] build_tools/devtools/setup.py requires python 3.12

2 participants