libxml2: Prepare to move system to real /usr

This commit is contained in:
Alexpux
2014-06-14 22:43:38 +04:00
parent a6bf4236bf
commit 3eaf89b4dd
3 changed files with 18 additions and 16 deletions

View File

@@ -2,19 +2,19 @@ PYTHON_SITELIB=usr/lib/python2.7/site-packages
PYTHON_LIB=usr/lib/python2.7
python_optimize() {
local pyd
local pyd
for pyd in "${@:-${PYTHON_SITELIB}}"
do
if [ ! -d ${pyd} ]
then
echo "Error: directory ${pyd} does not exist"
fi
for pyd in "${@:-${PYTHON_SITELIB}}"
do
if [ ! -d ${pyd} ]
then
echo "Error: directory ${pyd} does not exist"
fi
echo "Compiling ${pyd}..."
usr/bin/python2 ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${pyd}
usr/bin/python2 -OO ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${pyd}
done
echo "Compiling ${pyd}..."
usr/bin/python2 ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${pyd}
usr/bin/python2 -OO ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${pyd}
done
}
post_install() {