Skip to content

Commit

Permalink
python3-crc32c: set target platform via setup.cfg
Browse files Browse the repository at this point in the history
Do not poke at build system for finding platform
platform is target specific and when cross compiling it should be
detected differently, in this case lets pass it via environment so that
it can be set in recipe

Looks like we're not the first to need to specify the target platform
[1]
when building this package.  According to upstream, we can just update
setup.cfg instead of patching setup.py.

[1] ICRAR/crc32c#10

Signed-off-by: Justin Bronder <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Mar 9, 2022
1 parent b25c8cf commit 703f286
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ SRC_URI[sha256sum] = "3d058e7a5e37e4985d1a7ad4cb702bca56b490daa658d4851377d13ead

inherit pypi setuptools3

do_compile:prepend() {
if ! grep 'platform =' setup.cfg; then
printf "[build_ext]\nplatform = ${TARGET_ARCH}" >> setup.cfg
fi
}

RDEPENDS:${PN} += "python3-core"

0 comments on commit 703f286

Please sign in to comment.