Skip to content

Commit

Permalink
Add dependency on python39-wheel
Browse files Browse the repository at this point in the history
Use the python-wheel cygclass to work out the default version of Python
that's currently being used, and pick dependencies on the basis of that
value.
  • Loading branch information
me-and committed Nov 13, 2023
1 parent 06fa7c6 commit 9db6adb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions offlineimap.cygport
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
inherit python3-wheel
PYTHON_WHEEL_VERSIONS=3
inherit python-wheel

NAME=offlineimap
VERSION=8.0.0
Expand All @@ -17,4 +18,8 @@ SRC_DIR="offlineimap3-${PV}"

PATCH_URI=no-distro.patch

BUILD_REQUIRES=python3-rfc6555
if [[ "$PYTHON_WHEEL_VERSIONS" = *:* ]]; then
error "Expected to need only a single Python version, but asked to build for $PYTHON_WHEEL_VERSIONS"
fi

BUILD_REQUIRES="python${PYTHON_WHEEL_VERSIONS/.}-wheel python${PYTHON_WHEEL_VERSIONS/.}-rfc6555"

0 comments on commit 9db6adb

Please sign in to comment.