Skip to content

Commit 0fbff69

Browse files
committed
Add --no-cache-dir to "pip install" commands to workaround Openshift python-2.7 cartrdige bug (openshift/origin-server#6390)
1 parent 273d107 commit 0fbff69

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

usr/python/versions/2.7/bin/control

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ function tidy() {
124124
function build_server() {
125125
case "$OPENSHIFT_PYTHON_SERVER" in
126126
gevent)
127-
pip install gevent
127+
pip install --no-cache-dir gevent
128128
;;
129129
gunicorn)
130-
pip install gevent gunicorn
130+
pip install --no-cache-dir gevent gunicorn
131131
;;
132132
luigid)
133-
pip install luigi
133+
pip install --no-cache-dir luigi
134134
;;
135135
esac
136136

@@ -165,7 +165,7 @@ function build() {
165165

166166
if [ -f ${OPENSHIFT_REPO_DIR}/requirements.txt ]
167167
then
168-
( cd $OPENSHIFT_REPO_DIR; pip install -r ${OPENSHIFT_REPO_DIR}/requirements.txt $OPENSHIFT_PYTHON_MIRROR )
168+
( cd $OPENSHIFT_REPO_DIR; pip install --no-cache-dir -r ${OPENSHIFT_REPO_DIR}/requirements.txt $OPENSHIFT_PYTHON_MIRROR )
169169
fi
170170

171171
if [ -f ${OPENSHIFT_REPO_DIR}/setup.py ]

usr/python/versions/3.3/bin/control

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,14 @@ function tidy() {
112112
function build_server() {
113113
case "$OPENSHIFT_PYTHON_SERVER" in
114114
gevent)
115-
pip install gevent
115+
pip install --no-cache-dir gevent
116116
;;
117117
gunicorn)
118-
pip install gevent gunicorn
118+
pip install --no-cache-dir gevent gunicorn
119119
;;
120+
luigi)
121+
pip install --no-cache-dir luigi
122+
;;
120123
esac
121124

122125
echo $OPENSHIFT_PYTHON_SERVER > env/OPENSHIFT_PYTHON_RUNNING_SERVER
@@ -150,7 +153,7 @@ function build() {
150153

151154
if [ -f ${OPENSHIFT_REPO_DIR}/requirements.txt ]
152155
then
153-
( cd $OPENSHIFT_REPO_DIR; pip install -r ${OPENSHIFT_REPO_DIR}/requirements.txt $OPENSHIFT_PYTHON_MIRROR )
156+
( cd $OPENSHIFT_REPO_DIR; pip install --no-cache-dir -r ${OPENSHIFT_REPO_DIR}/requirements.txt $OPENSHIFT_PYTHON_MIRROR )
154157
fi
155158

156159
if [ -f ${OPENSHIFT_REPO_DIR}/setup.py ]

0 commit comments

Comments
 (0)