From 0330209788282eeb94c240e95c26cb118da259e7 Mon Sep 17 00:00:00 2001 From: Adam Dinwoodie Date: Sun, 12 Nov 2023 21:45:55 +0000 Subject: [PATCH] Handle Python versions dynamically --- python-rfc6555.cygport | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/python-rfc6555.cygport b/python-rfc6555.cygport index 095ead2..005c2ce 100644 --- a/python-rfc6555.cygport +++ b/python-rfc6555.cygport @@ -11,6 +11,17 @@ easy vendoring and integration into other projects." HOMEPAGE=https://github.com/sethmlarson/rfc6555 LICENSE=Apache-2.0 -BUILD_REQUIRES='python38-wheel python39-wheel' - ARCH=noarch + +handle_python_version () { + local version pkgversion + + version="$1" + pkgversion="${version/.}" + + BUILD_REQUIRES="${BUILD_REQUIRES:+$BUILD_REQUIRES }python${pkgversion}-wheel" +} + +for v in ${PYTHON_WHEEL_VERSIONS//:/ }; do + handle_python_version "$v" +done