xbps-triggers: pycompile: create optimized and byte compiled files.
This commit is contained in:
parent
5fa2675856
commit
19f367691d
2 changed files with 6 additions and 2 deletions
|
@ -35,11 +35,15 @@ compile()
|
||||||
{
|
{
|
||||||
for f in ${pycompile_dirs}; do
|
for f in ${pycompile_dirs}; do
|
||||||
echo "Byte-compiling python code in ${f}..."
|
echo "Byte-compiling python code in ${f}..."
|
||||||
|
python -m compileall -f -q ${f} && \
|
||||||
python -O -m compileall -f -q ${f}
|
python -O -m compileall -f -q ${f}
|
||||||
done
|
done
|
||||||
for f in ${pycompile_module}; do
|
for f in ${pycompile_module}; do
|
||||||
echo "Byte-compiling python code for module ${f}..."
|
echo "Byte-compiling python code for module ${f}..."
|
||||||
python -O -m compileall -f -q usr/lib/python${PYVER}/site-packages/${f}
|
python -m compileall -f -q \
|
||||||
|
usr/lib/python${PYVER}/site-packages/${f} && \
|
||||||
|
python -O -m compileall -f -q \
|
||||||
|
usr/lib/python${PYVER}/site-packages/${f}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.24
|
version=0.25
|
||||||
short_desc="XBPS triggers"
|
short_desc="XBPS triggers"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://code.google.com/p/xbps"
|
homepage="http://code.google.com/p/xbps"
|
||||||
|
|
Loading…
Reference in a new issue