Package Details: mingw-w64-python39-bin 3.9.13-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-python39-bin.git (read-only, click to copy)
Package Base: mingw-w64-python39-bin
Description: Next generation of the python high-level scripting language (native MSVC version) (mingw-w64)
Upstream URL: http://www.python.org/
Licenses: PSF
Submitter: xantares
Maintainer: xantares
Last Packager: xantares
Votes: 1
Popularity: 0.000000
First Submitted: 2020-09-01 11:24 (UTC)
Last Updated: 2024-09-12 16:45 (UTC)

Latest Comments

xantares commented on 2021-01-11 08:14 (UTC)

ok, applied

ravenexp commented on 2021-01-11 06:42 (UTC)

From 7c1f72c1c00c81d6cee2f1cb8e9b63a5a8b5d1fe Mon Sep 17 00:00:00 2001
From: Sergey Kvachonok <ravenexp@gmail.com>
Date: Mon, 11 Jan 2021 09:33:25 +0300
Subject: [PATCH] Package python3.dll for the stable ABI extensions.

Remove no-op pushd command.
---
 PKGBUILD | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index ac7dbd0..6739f47 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -37,7 +37,9 @@ build() {
     fi
     mkdir -p "build-${_arch}" && pushd "build-${_arch}"
     bsdtar -xf "${srcdir}"/python-${pkgver}-embed-${target}.zip
+    gendef python3.dll
     gendef python${_pybasever}.dll
+    ${_arch}-dlltool --dllname python3.dll --def python3.def --output-lib libpython3.dll.a
     ${_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
@@ -48,11 +50,12 @@ package() {
   for _arch in ${_architectures}; do
     cd "${srcdir}/Python-${pkgver}/build-${_arch}"
     install -d "$pkgdir"/usr/${_arch}/lib
-    install -m644 libpython${_pybasever}*.a "$pkgdir"/usr/${_arch}/lib
+    install -m644 libpython*.a "$pkgdir"/usr/${_arch}/lib
     install -d "$pkgdir"/usr/${_arch}/bin
     install -d "$pkgdir"/usr/${_arch}/include/python${_pybasever}
     cp -r ../Include/* "$pkgdir"/usr/${_arch}/include/python${_pybasever}
     install -m644 ../PC/pyconfig.h "$pkgdir"/usr/${_arch}/include/python${_pybasever}
+    install -m755 python3.dll "$pkgdir"/usr/${_arch}/bin
     install -m755 python${_pybasever}.dll "$pkgdir"/usr/${_arch}/bin
     install -d "$pkgdir"/usr/${_arch}/lib/python${_pybasever}
     install -m644 *.pyd "$pkgdir"/usr/${_arch}/lib/python${_pybasever}
@@ -60,7 +63,6 @@ package() {
     install -m644 python${_pybasever}.zip "$pkgdir"/usr/${_arch}/bin/
     install -d "$pkgdir"/usr/bin
     install -m755 ${_arch}-python${_pybasever}-bin "$pkgdir"/usr/bin
-    pushd "$pkgdir"/usr/${_arch}/bin/
     ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
   done
 }
-- 
2.30.0

ravenexp commented on 2021-01-03 20:58 (UTC)

Python extensions compiled for the stable python ABI [1] link to "python3.dll", not "python39.dll". This package does not install "python3.dll" and does not generate an import library for it.

[1] https://docs.python.org/3/c-api/stable.html