Fix python precompilation

This commit is contained in:
Oleksii Shevchuk 2017-03-15 00:06:46 +02:00
parent 5736081250
commit e4bbfd5630
3 changed files with 5 additions and 4 deletions

View File

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

View File

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

View File

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