From b0e5bc93937d043dca907b36266d8b407cfca44b Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Tue, 28 Oct 2025 20:47:25 +0100 Subject: [PATCH] python-cryptography: link against the limited Python API now that it's available --- python-cryptography/PKGBUILD | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python-cryptography/PKGBUILD b/python-cryptography/PKGBUILD index 187c1b6e..b1a1dfb2 100644 --- a/python-cryptography/PKGBUILD +++ b/python-cryptography/PKGBUILD @@ -3,7 +3,7 @@ _realname=cryptography pkgname=python-cryptography pkgver=46.0.3 -pkgrel=2 +pkgrel=3 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') @@ -32,8 +32,7 @@ build() { export MSYSTEM=CYGWIN # 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" + export RUSTFLAGS="-C link-arg=-lpython3" python -m build --wheel --no-isolation }