Skip to content

fix: platform tag detection for Android targets#3023

Merged
messense merged 1 commit intoPyO3:mainfrom
thunder-coding:android-platform-tags-detection
Feb 20, 2026
Merged

fix: platform tag detection for Android targets#3023
messense merged 1 commit intoPyO3:mainfrom
thunder-coding:android-platform-tags-detection

Conversation

@thunder-coding
Copy link
Copy Markdown
Contributor

Follow up of a23a6b5 (#2992)

It is recommended to go through the commit message linked above before trying to decode this. Since earlier Android was detected as Os::Linux, this extra condition was required, this should no longer be the case. So clean it up

A workaround is to set _PYTHON_HOST_PLATFORM=android_{ANDROID_API_LEVEL}_{ANDROID_ARCH} for build scripts that expect that wheels are named in a certain pattern

Issue originally reported in #2992 (comment)

CC @robertkirkman

Additionally, I'd appreciate if we can get a patch release with this commit for maturin, as this issue is causing our CI to fail for Python packages for Termux

Follow up of a23a6b5 (PyO3#2992)

It is recommended to go through the commit message linked above before
trying to decode this. Since earlier Android was detected as Os::Linux,
this extra condition was required, this should no longer be the case. So
clean it up

A workaround is to set
_PYTHON_HOST_PLATFORM=android_{ANDROID_API_LEVEL}_{ANDROID_ARCH} for
build scripts that expect that wheels are named in a certain pattern

Issue originally reported in PyO3#2992 (comment)
@messense messense merged commit f533eed into PyO3:main Feb 20, 2026
45 checks passed
@thunder-coding thunder-coding deleted the android-platform-tags-detection branch February 20, 2026 14:20
@robertkirkman
Copy link
Copy Markdown

Thanks, I can confirm that when this commit is in a release of Maturin, scripts/run-docker.sh ./build-package.sh -I -f ruff will work again.

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Feb 22, 2026
## 1.12.4

* Upgrade memmap2 version ([#3021](PyO3/maturin#3021))
* Fix: platform tag detection for Android targets ([#3023](PyO3/maturin#3023))
* Fix: only ignore maturin-generated native libraries on all platforms ([#3025](PyO3/maturin#3025))
* Fix: ignore develop artifacts for all binding types during build ([#3026](PyO3/maturin#3026))
* Feat: support conditional cargo features based on Python version ([#3027](PyO3/maturin#3027))

## 1.12.3

* Ci: set crt-static for riscv64 and loongarch64 musl targets ([#3009](PyO3/maturin#3009))
* Fix: support `maturin develop` on Windows ARM with x86 Python ([#3011](PyO3/maturin#3011))
* Fix: exclude `external_packages` bindings from uniffi wheels ([#3013](PyO3/maturin#3013))
* Update cargo-zigbuild to 0.22.1 ([#3015](PyO3/maturin#3015))
* Feat: build wheels from sdist with `--sdist` flag ([#3014](PyO3/maturin#3014))
* Feat: add `include-import-lib` option to bundle Windows import libraries in wheels ([#3017](PyO3/maturin#3017))
* Fix: auditwheel external lib check respects musllinux and reports symbol versions ([#3019](PyO3/maturin#3019))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants