Skip to content

Commit

Permalink
Add --no-cache-dir to "pip install" commands to workaround Openshift …
Browse files Browse the repository at this point in the history
…python-2.7 cartrdige bug (openshift/origin-server#6390)
  • Loading branch information
gwossum-lrs committed Aug 3, 2016
1 parent 273d107 commit 0fbff69
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions usr/python/versions/2.7/bin/control
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ function tidy() {
function build_server() {
case "$OPENSHIFT_PYTHON_SERVER" in
gevent)
pip install gevent
pip install --no-cache-dir gevent
;;
gunicorn)
pip install gevent gunicorn
pip install --no-cache-dir gevent gunicorn
;;
luigid)
pip install luigi
pip install --no-cache-dir luigi
;;
esac

Expand Down Expand Up @@ -165,7 +165,7 @@ function build() {

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

if [ -f ${OPENSHIFT_REPO_DIR}/setup.py ]
Expand Down
9 changes: 6 additions & 3 deletions usr/python/versions/3.3/bin/control
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,14 @@ function tidy() {
function build_server() {
case "$OPENSHIFT_PYTHON_SERVER" in
gevent)
pip install gevent
pip install --no-cache-dir gevent
;;
gunicorn)
pip install gevent gunicorn
pip install --no-cache-dir gevent gunicorn
;;
luigi)
pip install --no-cache-dir luigi
;;
esac

echo $OPENSHIFT_PYTHON_SERVER > env/OPENSHIFT_PYTHON_RUNNING_SERVER
Expand Down Expand Up @@ -150,7 +153,7 @@ function build() {

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

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

0 comments on commit 0fbff69

Please sign in to comment.