Skip to content

Use uv to create python venv for SimpleITK Python - #2338

Merged
blowekamp merged 1 commit into
SimpleITK:masterfrom
blowekamp:use_uv_superbuild_python
Jun 25, 2025
Merged

blowekamp merged 1 commit into
SimpleITK:masterfrom
blowekamp:use_uv_superbuild_python

Conversation

@blowekamp

Copy link
Copy Markdown
Member

Remove the requirement to have python installed by using uv to create a venv of a specifc version of python.

@blowekamp
blowekamp force-pushed the use_uv_superbuild_python branch 2 times, most recently from e55aea2 to c4c9f6d Compare June 25, 2025 16:08
@blowekamp
blowekamp requested review from dave3d and zivy June 25, 2025 18:16
@blowekamp
blowekamp marked this pull request as ready for review June 25, 2025 18:16
Comment thread SuperBuild/SuperBuild.cmake Outdated
COMMAND
"${Python_EXECUTABLE}" "-m" "venv" "--clear" "${_Python_venv_home}"
"${CMAKE_COMMAND}" -E env "XDG_BIN_HOME=${_SimpleITK_uv_PATH}/bin"
NO_MODIFY_PATH=1 sh ${UV_INSTALLER}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The install is still outputting some noise recommendation to update the path, the "--quiet" flag should be added.

Remove the requirement to have python installed by using uv to create
a venv of a specifc version of python.
@blowekamp
blowekamp force-pushed the use_uv_superbuild_python branch from c4c9f6d to fc508e1 Compare June 25, 2025 18:32
@blowekamp
blowekamp merged commit 9f5e11b into SimpleITK:master Jun 25, 2025
@blowekamp
blowekamp deleted the use_uv_superbuild_python branch September 9, 2026 12:55
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.

3 participants