xbps-triggers: invoke correct python version with pycompile_module.
This commit is contained in:
parent
5f451cd025
commit
37fd032ad2
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.78
|
||||
version=0.79
|
||||
revision=1
|
||||
noarch=yes
|
||||
bootstrap=yes
|
||||
|
|
Loading…
Reference in New Issue