xbps-triggers: invoke correct python version with pycompile_module.

This commit is contained in:
Juan RP 2014-06-18 12:05:53 +02:00
parent 5f451cd025
commit 37fd032ad2
2 changed files with 5 additions and 5 deletions

View File

@ -46,14 +46,14 @@ compile()
for f in ${pycompile_module}; do
echo "Byte-compiling python${pycompile_version} code for module ${f}..."
if [ -d usr/lib/python${pycompile_version}/site-packages/${f} ]; then
python -m compileall -f -q \
python${pycompile_version} -m compileall -f -q \
usr/lib/python${pycompile_version}/site-packages/${f} && \
python -O -m compileall -f -q \
python${pycompile_version} -O -m compileall -f -q \
usr/lib/python${pycompile_version}/site-packages/${f}
else
python -m compileall -f -q \
python${pycompile_version} -m compileall -f -q \
usr/lib/python${pycompile_version}/site-packages/${f} && \
python -O -m compileall -f -q \
python${pycompile_version} -O -m compileall -f -q \
usr/lib/python${pycompile_version}/site-packages/${f}
fi
done

View File

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.78
version=0.79
revision=1
noarch=yes
bootstrap=yes