-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Migrate all Python3 Scripts to uv #4961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For line 307-323 (immich-install.sh), this works:
cd "$SRC_DIR"/machine-learning
export VIRTUAL_ENV="${ML_DIR}/ml-venv"
$STD uv venv "$VIRTUAL_ENV"
if [[ -f ~/.openvino ]]; then
msg_info "Installing HW-accelerated machine-learning"
uv -q sync --extra openvino --no-cache --active
patchelf --clear-execstack "$ML_DIR"/ml-venv/lib/python3.11/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.cpython-311-x86_64-linux-gnu.so
msg_ok "Installed HW-accelerated machine-learning"
else
msg_info "Installing machine-learning"
uv -q sync --extra cpu --no-cache --active
msg_ok "Installed machine-learning"
fi
I've also found that the output of uv is not suppressed when using $STD, but using -q
seems to do it, with the drawback that it will also suppress output during verbose operation.
Also, python3-dev
(line 31) is required, otherwise the machine-learning build will fail
- Simplifies UV use in Immich install & update - Uses Python 3.11 (No official support for 3.12 yet) - Restores python3-dev package
I use this PR only for Tracking & Testing, every Script get His own PR |
✍️ Description
project
table found in:/opt/tandoor/pyproject.toml
⠹ [ERROR] in line 63: exit code 0: while executing command $STD uv run python version.py🔗 Related PR / Issue
Link: #
✅ Prerequisites (X in brackets)
🛠️ Type of Change (X in brackets)
README
,AppName.md
,CONTRIBUTING.md
, or other docs.