Skip to content

Commit 961849a

Browse files
authored
Merge branch 'release/1.2-dev' into refactor/legacy-accel-plug
2 parents 34be725 + 9be04c1 commit 961849a

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

dockers/base-conda/Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,9 @@ COPY ./requirements/extra.txt requirements-extra.txt
9696
COPY ./requirements/test.txt requirements-test.txt
9797

9898
RUN \
99-
# Disable cache
100-
pip config set global.cache-dir false && \
101-
# Drop fairscale for PT <= 1.4
102-
if [[ $PYTORCH_VERSION < 1.4 ]] ; then \
103-
python -c "fname = 'requirements-extra.txt' ; lines = [line for line in open(fname).readlines() if 'fairscale' not in line] ; open(fname, 'w').writelines(lines)" ; \
104-
fi && \
10599
# Install remaining requirements
106-
pip install -r requirements-extra.txt --upgrade-strategy only-if-needed && \
107-
pip install -r requirements-test.txt --upgrade-strategy only-if-needed && \
100+
pip install -r requirements-extra.txt --no-cache-dir && \
101+
pip install -r requirements-test.txt --no-cache-dir && \
108102
rm requirements*
109103

110104
RUN \

dockers/base-cuda/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,10 @@ RUN \
9090
#pip install "torch==${PYTORCH_VERSION}.*" --pre && \
9191
# set particular PyTorch version
9292
python -c "import re ; fname = 'requirements.txt' ; req = re.sub(r'torch[>=]+[\d\.]+', 'torch==${PYTORCH_VERSION}.*', open(fname).read()) ; open(fname, 'w').write(req)" && \
93-
# Drop fairscale for PT <= 1.4
94-
if [[ $PYTORCH_VERSION < 1.4 ]] ; then \
95-
python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'fairscale' not in line] ; open(fname, 'w').writelines(lines)" ; \
96-
fi && \
9793
# Install all requirements
9894
# todo: find a way how to install nightly PT version
9995
# --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu${cuda_ver[0]}${cuda_ver[1]}/torch_nightly.html
100-
pip install -r requirements/devel.txt --upgrade-strategy only-if-needed --use-feature=2020-resolver && \
96+
pip install -r requirements/devel.txt --no-cache-dir && \
10197
rm -rf requirements*
10298

10399
RUN \

dockers/base-xla/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ RUN \
101101
python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'fairscale' not in line] ; open(fname, 'w').writelines(lines)" && \
102102
# drop TorchVision as it was installed with XLA
103103
python -c "fname = 'requirements/examples.txt' ; lines = [line for line in open(fname).readlines() if not line.startswith('torchvision')] ; open(fname, 'w').writelines(lines)" && \
104-
pip install --requirement ./requirements/devel.txt --upgrade-strategy only-if-needed && \
104+
pip install --requirement ./requirements/devel.txt --no-cache-dir && \
105105
cd .. && \
106106
rm -rf pytorch-lightning && \
107107
rm -rf /root/.cache

dockers/release/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ RUN \
2929
#conda install "pip>20.1" && \
3030
#pip config set global.cache-dir false && \
3131
if [ -z $LIGHTNING_VERSION ] ; then \
32-
pip install ./pytorch-lightning --upgrade-strategy only-if-needed ; \
32+
pip install ./pytorch-lightning --no-cache-dir ; \
3333
rm -rf pytorch-lightning ; \
3434
else \
3535
rm -rf pytorch-lightning ; \
36-
pip install https://github.com/PyTorchLightning/pytorch-lightning/archive/${LIGHTNING_VERSION}.zip --upgrade-strategy only-if-needed ; \
36+
pip install https://github.com/PyTorchLightning/pytorch-lightning/archive/${LIGHTNING_VERSION}.zip --no-cache-dir ; \
3737
fi
3838

3939
RUN python --version && \

dockers/tpu-tests/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN \
3131
python -c "fname = 'pytorch-lightning/requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if not line.startswith('horovod')] ; open(fname, 'w').writelines(lines)" && \
3232
# drop fairscale as it is not needed
3333
python -c "fname = 'pytorch-lightning/requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'fairscale' not in line] ; open(fname, 'w').writelines(lines)" && \
34-
pip install -r pytorch-lightning/requirements/devel.txt --no-cache-dir --upgrade-strategy only-if-needed
34+
pip install -r pytorch-lightning/requirements/devel.txt --no-cache-dir
3535

3636
#RUN python -c "import pytorch_lightning as pl; print(pl.__version__)"
3737

0 commit comments

Comments
 (0)