* Drop a patch for an issue fixed upstream * In post_install() don't python byte compile the world. This can lead to errors with other packages that install python 3 code which isn't executed (jinja2 for example) and breaks upgrades. Also it's not nice to touch files from other packages.. * Instead of deleting libxml2mod.dll.a in post_install() just don't package it.
18 lines
467 B
Plaintext
18 lines
467 B
Plaintext
PYTHON_SITELIB=/mingw32/lib/python2.7/site-packages
|
|
|
|
post_install() {
|
|
if test ! -f mingw32/etc/xml/catalog; then
|
|
bin/mkdir -p mingw32/etc/xml
|
|
mingw32/bin/xmlcatalog --noout --create mingw32/etc/xml/catalog
|
|
fi
|
|
|
|
if test -f mingw32/bin/python2.exe; then
|
|
mingw32/bin/python2.exe -m compileall -q -f ${PYTHON_SITELIB}/*libxml2.py
|
|
mingw32/bin/python2.exe -OO -m compileall -q -f ${PYTHON_SITELIB}/*libxml2.py
|
|
fi
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install
|
|
}
|