summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichel Zou2021-11-11 00:23:32 +0100
committerMichel Zou2021-11-11 00:23:32 +0100
commit74f22cba976c7ad559abd5f5ae1894b3e7acfb3b (patch)
tree80c017fb49ea933913a260d90fa9d71bb28b3dd4 /PKGBUILD
parentce8fe74eb5f7f2b46a0ac20f80b5ea91ffe50e4d (diff)
downloadaur-mingw-w64-python39-bin.tar.gz
PyEval_InitThreads
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 884d8efc4b5..4ae4f951fa8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -38,6 +38,7 @@ build() {
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
bsdtar -xf "${srcdir}"/python-${pkgver}-embed-${target}.zip
gendef python${_pybasever}.dll
+ sed -i "s|PyEval_InitThreads@0|PyEval_InitThreads|g" python${_pybasever}.def
${_arch}-dlltool --dllname python${_pybasever}.dll --def python${_pybasever}.def --output-lib libpython${_pybasever}.dll.a
sed "s|@TRIPLE@|${_arch}|g;s|@PYVER@|${_pybasever}|g" "${srcdir}"/wine-python.sh > ${_arch}-python${_pybasever}-bin
popd