Commit bf9e9926 authored by Philipp Wolfer's avatar Philipp Wolfer

Fix Openshift install not pinning Django to 1.8

parent f42f02ff
......@@ -52,10 +52,12 @@ source $OPENSHIFT_HOMEDIR/python/virtenv/bin/activate
cd ${OPENSHIFT_REPO_DIR}
# Pin Django version to 1.8 to avoid surprises when 1.9 comes out.
sed -e 's/Django[<>=]\+.*/Django>=1.8,<1.9/' $OPENSHIFT_REPO_DIR/requirements.txt >/tmp/requirements.txt
# Prevent lxml 3.5 or later to be used on OpenShift because its compilation needs more memory than small gears can provide.
sed -e 's/lxml[<>=]\+.*/\0,<3.5/' $OPENSHIFT_REPO_DIR/requirements.txt >/tmp/requirements.txt
# Prevent lxml 3.5 or later to be used on OpenShift because its compilation
# needs more memory than small gears can provide.
cat $OPENSHIFT_REPO_DIR/requirements.txt |
sed -e 's/Django[<>=]\+.*/Django>=1.8,<1.9/' |
sed -e 's/lxml[<>=]\+.*/\0,<3.5/' \
>/tmp/requirements.txt
sh "pip install -U -r /tmp/requirements.txt"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment