Fix installation of some packages on new root.

This commit is contained in:
Alexpux
2014-02-05 15:02:15 +04:00
parent a39de71535
commit 9841d13dd8
8 changed files with 29 additions and 14 deletions

View File

@@ -6,14 +6,14 @@ python_optimize() {
for pyd in "${@:-${PYTHON_SITELIB}}"
do
if [ ! -d ${D}${pyd} ]
if [ ! -d ${pyd} ]
then
echo "Error: directory ${pyd} does not exist"
fi
echo "Compiling ${pyd}..."
bin/python2 ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${D}${pyd}
bin/python2 -OO ${PYTHON_LIB}/compileall.py -f -q -d ${pyd} ${D}${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
}