From 30eafbff659031757c937cd763bcda45bf28d90a Mon Sep 17 00:00:00 2001 From: John Eskew Date: Fri, 22 Dec 2017 13:05:47 -0500 Subject: [PATCH] fixup! Install recent version of sqlite/pysqlite to fix crashes in tests. --- scripts/upgrade_pysqlite.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/upgrade_pysqlite.sh b/scripts/upgrade_pysqlite.sh index 5a9fed0d93..91e8c031df 100755 --- a/scripts/upgrade_pysqlite.sh +++ b/scripts/upgrade_pysqlite.sh @@ -1,5 +1,12 @@ #!/bin/bash +# First, check to see if the pysqlite version has already been upgraded. If so, no installation is needed. +# The pip-installed version of pysqlite has a sqlite_version of "3.11.0". +sqlite_version=`python -c "from pysqlite2._sqlite import sqlite_version; print sqlite_version"` +if [ $sqlite_version = "3.14.1" ]; then + exit 0 +fi + # Upgrade the version of pysqlite/sqlite to avoid crashes during testing. # Ideally, this code would just install a pre-built wheel - change it to this # once edX has its own artifact server.