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