Compile the modules after deploying them

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2020-09-14 16:32:15 +02:00
parent 27b258b12c
commit 63d8eeed89
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -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}