Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit 5be9e87

Browse files
authored
Pin pipenv dependencies in setup_host.sh (#709)
1 parent 72c7833 commit 5be9e87

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

aztk/node_scripts/setup_host.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ pull_docker_container () {
6262
docker login $DOCKER_ENDPOINT --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
6363
fi
6464

65-
6665
for i in {1..5}; do
6766
docker pull $docker_repo_name && break ||
6867
echo "ERROR: docker pull $docker_repo_name failed ... retrying after $($i**2) seconds" &&
@@ -106,20 +105,14 @@ run_docker_container () {
106105
ln -s $docker_log $AZ_BATCH_TASK_WORKING_DIR/logs/docker.log
107106
fi
108107
echo "Finished running docker container"
109-
110108
}
111109

112110

113-
114-
115-
116111
main () {
117-
118112
time(
119113
install_prerequisites
120114
) 2>&1
121115

122-
123116
# set hostname in /etc/hosts if dns cannot resolve
124117
if ! host $HOSTNAME ; then
125118
echo $(hostname -I | awk '{print $1}') $HOSTNAME >> /etc/hosts
@@ -149,7 +142,11 @@ main () {
149142
# set up aztk python environment
150143
export LC_ALL=C.UTF-8
151144
export LANG=C.UTF-8
152-
# ensure these packages are compatibile before upgrading
145+
# pin pipenv dependencies (and transitive dependencies) since pipenv does not
146+
python3 -m pip install setuptools=="42.0.2"
147+
python3 -m pip install zipp=="1.1.0"
148+
python3 -m pip install virtualenv=="20.0.0"
149+
# ensure these packages (pip, pipenv) are compatibile before upgrading
153150
python3 -m pip install pip=="18.0" pipenv=="2018.7.1"
154151
mkdir -p $AZTK_WORKING_DIR/.aztk-env
155152
cp $AZTK_WORKING_DIR/aztk/node_scripts/Pipfile $AZTK_WORKING_DIR/.aztk-env

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ paramiko~=2.4.2
1111
# Development
1212
yapf==0.22.0
1313
pylint==2.1.1
14-
pytest==3.1.3
14+
pytest==5.3.5
1515
pytest-xdist==1.22.0
1616
twine==1.11.0
1717
docker==3.2.1

0 commit comments

Comments
 (0)