/bin doesn't exist in chroot which is used with "pacman --root" See https://github.com/msys2/MSYS2-packages/issues/1998
18 lines
471 B
Plaintext
18 lines
471 B
Plaintext
PYTHON_SITELIB=/mingw32/lib/python2.7/site-packages
|
|
|
|
post_install() {
|
|
if test ! -f mingw32/etc/xml/catalog; then
|
|
usr/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
|
|
}
|