-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Release Build/setup.py for SAM2 dependency (#1779)
* SAM-2 as extra dependency for PyPi Signed-off-by: Sachidanand Alle <[email protected]> * Disable release test once Signed-off-by: Sachidanand Alle <[email protected]> * Fix release build Signed-off-by: Sachidanand Alle <[email protected]> * Fix release build Signed-off-by: Sachidanand Alle <[email protected]> * Fix github sam2 packaging for PyPI release Signed-off-by: Sachidanand Alle <[email protected]> * Fix build error Signed-off-by: Sachidanand Alle <[email protected]> * Fix build error Signed-off-by: Sachidanand Alle <[email protected]> --------- Signed-off-by: Sachidanand Alle <[email protected]>
- Loading branch information
1 parent
ea9e302
commit 241f0c4
Showing
12 changed files
with
70 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ __pycache__ | |
.vscode | ||
.webpack | ||
node_modules/ | ||
*.log | ||
|
||
# Environments | ||
.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,12 @@ RUN BUILD_OHIF=false python setup.py bdist_wheel --build-number $(date +'%Y%m%d% | |
FROM ${FINAL_IMAGE} | ||
LABEL maintainer="[email protected]" | ||
WORKDIR /opt/monailabel | ||
COPY requirements.txt /opt/monailabel/requirements.txt | ||
|
||
RUN apt update -y && apt install -y git curl openslide-tools python3 python-is-python3 python3-pip | ||
RUN python -m pip install --no-cache-dir pytest torch torchvision torchaudio | ||
|
||
COPY --from=build /opt/monailabel/dist/monailabel* /opt/monailabel/dist/ | ||
RUN python -m pip install --no-cache-dir /opt/monailabel/dist/monailabel*.whl | ||
RUN python -m pip install -v --no-cache-dir /opt/monailabel/dist/monailabel*.whl | ||
RUN python -m pip uninstall sam2 -y | ||
RUN python -m pip install -v --no-cache-dir -r /opt/monailabel/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters