Skip to content

Commit

Permalink
Handle Python versions dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
me-and committed Nov 12, 2023
1 parent b90d219 commit 0330209
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions python-rfc6555.cygport
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0330209

Please sign in to comment.