maturin: fix default wheel tag

For our Python at least, upstream cygwin still includes the version
in sysconfig.get_platform().
This commit is contained in:
Christoph Reiter
2025-10-28 09:22:42 +01:00
parent a5d1745c67
commit 368d4cfae1
3 changed files with 20 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
_realname=cryptography
pkgname=python-cryptography
pkgver=46.0.3
pkgrel=1
pkgrel=2
pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
arch=('i686' 'x86_64')
license=('spdx:Apache-2.0 OR BSD-3-Clause')
@@ -31,9 +31,6 @@ build() {
# XXX: to fix maturin OS detection
export MSYSTEM=CYGWIN
# XXX: to fix the maturin wheel tag
export _PYTHON_HOST_PLATFORM=$(python -c "import sysconfig, sys; sys.stdout.write(sysconfig.get_platform())")
# XXX: this should be handled by maturin/pyo3 somehow
local link_arg=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBPYTHON'))")
export RUSTFLAGS="-C link-arg=$link_arg"