From e4bbfd5630c2f4d6a79119bbabb1fedb907f1816 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Wed, 15 Mar 2017 00:06:46 +0200 Subject: [PATCH] Fix python precompilation --- client/sources-linux/buildenv.sh | 4 ++-- client/sources/buildenv.sh | 1 + pupy/conf/pupyenv.sh | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/sources-linux/buildenv.sh b/client/sources-linux/buildenv.sh index ad286f5c..18d2a019 100755 --- a/client/sources-linux/buildenv.sh +++ b/client/sources-linux/buildenv.sh @@ -276,7 +276,7 @@ CFLAGS="-O2 -pipe -DCLOCK_MONOTONIC=1 -UHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC -U cd /usr/lib/python2.7 python -O -m compileall -q -python -OO -m compileall -q +python -m compileall -q find -name "*.so" | while read f; do strip \$f; done @@ -498,7 +498,7 @@ python -O -m pip install pyuv --no-binary :all: cd /usr/lib/python2.7 python -O -m compileall -q -python -OO -m compileall -q +python -m compileall -q find -name "*.so" | while read f; do strip \$f; done diff --git a/client/sources/buildenv.sh b/client/sources/buildenv.sh index 044c9f5b..59dca464 100755 --- a/client/sources/buildenv.sh +++ b/client/sources/buildenv.sh @@ -157,6 +157,7 @@ for prefix in $WINE32 $WINE64; do WINEPREFIX=$prefix wine C:\\Python27\\python -O -m pip install --upgrade $PACKAGES WINEPREFIX=$prefix wine C:\\Python27\\python -O -m pip install --upgrade --no-binary :all: psutil WINEPREFIX=$prefix wine C:\\Python27\\python -O -m compileall -q C:\\Python27\\Lib || true + WINEPREFIX=$prefix wine C:\\Python27\\python -m compileall -q C:\\Python27\\Lib || true done # WINEPREFIX=$WINE32 wine C:\\Python27\\python.exe -m easy_install -Z $PYWIN32 diff --git a/pupy/conf/pupyenv.sh b/pupy/conf/pupyenv.sh index 5fd808a3..f6b98427 100755 --- a/pupy/conf/pupyenv.sh +++ b/pupy/conf/pupyenv.sh @@ -48,8 +48,8 @@ cd /opt/pupy find -type f -exec md5sum {} ';' >/projects/integrity.txt -python -O -m compileall -qf 1>/dev/null 2>/dev/null -python -OO -m compileall -qf 1>/dev/null 2>/dev/null +python -m compileall . -qf 1>/dev/null 2>/dev/null +python -O -m compileall . -qf 1>/dev/null 2>/dev/null echo 'Copy your authorized_keys here!' >/projects/keys/README