xbps-triggers: invoke correct python version with pycompile_module.
This commit is contained in:
parent
5f451cd025
commit
37fd032ad2
2 changed files with 5 additions and 5 deletions
|
@ -46,14 +46,14 @@ compile()
|
||||||
for f in ${pycompile_module}; do
|
for f in ${pycompile_module}; do
|
||||||
echo "Byte-compiling python${pycompile_version} code for module ${f}..."
|
echo "Byte-compiling python${pycompile_version} code for module ${f}..."
|
||||||
if [ -d usr/lib/python${pycompile_version}/site-packages/${f} ]; then
|
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} && \
|
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}
|
usr/lib/python${pycompile_version}/site-packages/${f}
|
||||||
else
|
else
|
||||||
python -m compileall -f -q \
|
python${pycompile_version} -m compileall -f -q \
|
||||||
usr/lib/python${pycompile_version}/site-packages/${f} && \
|
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}
|
usr/lib/python${pycompile_version}/site-packages/${f}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.78
|
version=0.79
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue