Skip to content
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

Upgrade MHub to uv and python3.11 #100

Merged
merged 10 commits into from
Sep 18, 2024
Merged

Upgrade MHub to uv and python3.11 #100

merged 10 commits into from
Sep 18, 2024

Conversation

LennyN95
Copy link
Member

  • The base image now ships with uv 0.4.4

  • The mhubio and segdb packages are now installed in a virtual environment using python 3.11 (bumped from 3.8)

  • All dependency versions are fixed now (and will be moved into package dependencies with a future update)

  • Some models require python 3.8, we created a new .venv38 environment with python 3.8 and installed the model dependencies there. The model logic is then outsourced into a cli script that is called from the Runner module.

  • Future base images likely will contain updated versions of uv since uv is actively developed and receives frequent improvements and fixes.

- install uv 0.4.4
- use uv to install python 3.11 in a virtual environment under /app/.venv
- install all mhubio and segdb dependencies with fixed versions in the virtual environment
- install the medcmp package for output comparison and report generation
- update mhub.run, mhub.update and mhub.version entrypoint utility scripts to use the uv managed virtual environment instead of system python.
- install all dependencies in a python 3.8 venv
- outsource inference code in a separate cli script
- run cli inference script in python 3.8 venv from the Runner via subprocess
- install all dependencies via uv
- install pyradiomics into a python 3.8 virtual environment
- replace pipenv with uv venv
- replace pipenv with uv venv
- entrypoint now lists all base image utility workflows
@LennyN95 LennyN95 merged commit d75af53 into main Sep 18, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant