From 07a4479040fa9a6f4c4b3a4c64bedf8aeda17dbd Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Sat, 24 Sep 2016 08:29:24 +0200
Subject: [PATCH] Try strategy for venv fix (py3, bis)

---
 gitlab/before_build.sh | 3 ---
 gitlab/build.sh        | 5 ++++-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gitlab/before_build.sh b/gitlab/before_build.sh
index a350c37..de57423 100755
--- a/gitlab/before_build.sh
+++ b/gitlab/before_build.sh
@@ -60,6 +60,3 @@ else
   log_error "No bootstrap-buildout.py file found, stopping..."
   exit 1
 fi
-
-# Corrects the virtualenv to take LD_LIBRARY_PATH into account
-fix_venv
diff --git a/gitlab/build.sh b/gitlab/build.sh
index a31680a..1ba1e5a 100755
--- a/gitlab/build.sh
+++ b/gitlab/build.sh
@@ -3,7 +3,10 @@
 
 source $(dirname ${0})/functions.sh
 
-run_cmd ./bin/buildout
+run_cmd_ld ./bin/buildout
+
+# Corrects the virtualenv to take LD_LIBRARY_PATH into account
+fix_venv
 
 if [ -x ./bin/bob_dbmanage.py ]; then
   run_cmd ./bin/bob_dbmanage.py all download --force;
-- 
GitLab