From 41d27de7e6219462eee5119b3cf3efdfce6e5cfb Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 10 Jun 2022 08:33:33 +0200 Subject: [PATCH] python-testpath: bytecompile --- mingw-w64-python-testpath/PKGBUILD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mingw-w64-python-testpath/PKGBUILD b/mingw-w64-python-testpath/PKGBUILD index 1bf77c644f..bdc9baa97e 100644 --- a/mingw-w64-python-testpath/PKGBUILD +++ b/mingw-w64-python-testpath/PKGBUILD @@ -43,4 +43,7 @@ package() { cd "${srcdir}/${_realname}-${pkgver}" install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" + + MSYS2_ARG_CONV_EXCL="-p" python -m compileall \ + -o 0 -o 1 -q -s"${pkgdir}" -p"/" "${pkgdir}${MINGW_PREFIX}/lib/python"* }