Files
MINGW-packages/mingw-w64-libxml2/libxml2-i686.install
Christoph Reiter 1f62f7e50c libxml2: Update to 2.9.5; post_install() fixes (#2966)
* 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.
2017-09-26 07:20:53 +03:00

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
}