From 8771ee37c6355fd94c2845e033f39f8c4808a525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 14 Sep 2020 16:32:15 +0200 Subject: [PATCH] Compile the modules after deploying them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 5339e6a..2f63c90 100755 --- a/install.sh +++ b/install.sh @@ -2,9 +2,10 @@ set -e -PYDIR=`python3 -Ic "from distutils.sysconfig import get_python_lib; print(get_python_lib())"` +SITE_PACKAGES=`python3 -Ic "from distutils.sysconfig import get_python_lib; print(get_python_lib())"` set -x -cp -afv ipsilon ${ROOT}${PYDIR}/ -cp -afv openid ${ROOT}${PYDIR}/ +cp -afv ipsilon ${ROOT}${SITE_PACKAGES}/ +cp -afv openid ${ROOT}${SITE_PACKAGES}/ +python3 -m compileall ${ROOT}${SITE_PACKAGES}/{ipsilon,openid}