Skip to content

Commit f278e51

Browse files
authored
Add version requirement for filelock and nni (#7744)
Add version requirement for filelock and nni ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent 32b7754 commit f278e51

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@ LABEL maintainer="monai.contact@gmail.com"
1818

1919
# TODO: remark for issue [revise the dockerfile](https://github.com/zarr-developers/numcodecs/issues/431)
2020
RUN if [[ $(uname -m) =~ "aarch64" ]]; then \
21-
cd /opt && \
22-
git clone --branch v0.12.1 --recursive https://github.com/zarr-developers/numcodecs && \
23-
pip wheel numcodecs && \
24-
rm -r /opt/*.whl && \
25-
rm -rf /opt/numcodecs; \
21+
export CFLAGS="-O3" && \
22+
export DISABLE_NUMCODECS_SSE2=true && \
23+
export DISABLE_NUMCODECS_AVX2=true && \
24+
pip install numcodecs; \
2625
fi
2726

2827
WORKDIR /opt/monai
2928

30-
# remove opencv-python before opencv-python-headless installation
31-
RUN pip uninstall -y opencv && rm /usr/local/lib/python3.10/dist-packages/cv2 -r
32-
3329
# install full deps
3430
COPY requirements.txt requirements-min.txt requirements-dev.txt /tmp/
3531
RUN cp /tmp/requirements.txt /tmp/req.bak \

requirements-dev.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,14 @@ pynrrd
4646
pre-commit
4747
pydicom
4848
h5py
49-
nni; platform_system == "Linux" and "arm" not in platform_machine and "aarch" not in platform_machine
49+
nni==2.10.1; platform_system == "Linux" and "arm" not in platform_machine and "aarch" not in platform_machine
5050
optuna
5151
git+https://github.com/Project-MONAI/MetricsReloaded@monai-support#egg=MetricsReloaded
5252
onnx>=1.13.0
5353
onnxruntime; python_version <= '3.10'
5454
typeguard<3 # https://github.com/microsoft/nni/issues/5457
55-
filelock!=3.12.0 # https://github.com/microsoft/nni/issues/5523
55+
filelock<3.12.0 # https://github.com/microsoft/nni/issues/5523
5656
zarr
5757
lpips==0.1.4
5858
nvidia-ml-py
5959
huggingface_hub
60-
opencv-python-headless

0 commit comments

Comments
 (0)