Skip to content

Add support for Python interpreters on ARMv5TE platforms#10234

Merged
charliermarsh merged 4 commits intoastral-sh:mainfrom
lscorcia:issue-10157
Dec 30, 2024
Merged

Add support for Python interpreters on ARMv5TE platforms#10234
charliermarsh merged 4 commits intoastral-sh:mainfrom
lscorcia:issue-10157

Conversation

@lscorcia
Copy link
Contributor

Summary

Allows uv to recognize the ARMv5TE platform. This platform is currently supported on Debian distributions. It is an older 32 bit platform mostly used in embedded devices, currently in rust tier 2.5 so it requires cross compilation.

Fixes #10157 .

Test Plan

Tested directly on device by applying a slightly different patch to tag 0.5.4 which is used by the current Home Assistant version (2024.12.5). After the patch Home Assistant is able to recognize the Python venv and setup its dependencies.

Patched uv was built with

$ CARGO_TARGET_ARMV5TE_UNKNOWN_LINUX_GNUEABI_LINKER="/usr/bin/arm-linux-gnueabi-gcc" maturin build --release --target armv5te-unknown-linux-gnueabi --manylinux off

The target wheel was then moved on the device and installed via pip install.

@lscorcia lscorcia marked this pull request as draft December 30, 2024 08:09
@lscorcia lscorcia marked this pull request as ready for review December 30, 2024 08:37
@charliermarsh charliermarsh added the compatibility Compatibility with a specification or another tool label Dec 30, 2024
@charliermarsh charliermarsh merged commit dec6f5a into astral-sh:main Dec 30, 2024
@charliermarsh
Copy link
Member

Thanks!

@zanieb zanieb changed the title Initial support for ARMv5TE platform via cross compilation Add support for Python interpreters on ARMv5TE platforms Dec 30, 2024
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Jan 4, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [astral-sh/uv](https://github.com/astral-sh/uv) | patch | `0.5.13` -> `0.5.14` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>astral-sh/uv (astral-sh/uv)</summary>

### [`v0.5.14`](https://github.com/astral-sh/uv/blob/HEAD/CHANGELOG.md#0514)

[Compare Source](astral-sh/uv@0.5.13...0.5.14)

##### Enhancements

-   Add `--exact` flag to `uv run` ([#&#8203;10198](astral-sh/uv#10198))
-   Add `--outdated` support to `uv pip tree` ([#&#8203;10199](astral-sh/uv#10199))
-   Add a required version setting to uv ([#&#8203;10248](astral-sh/uv#10248))
-   Add loongarch64 to supported Python platform tags ([#&#8203;10223](astral-sh/uv#10223))
-   Add manylinux2014 aliases for `--python-platform` ([#&#8203;10217](astral-sh/uv#10217))
-   Add support for Python interpreters on ARMv5TE platforms ([#&#8203;10234](astral-sh/uv#10234))
-   Add support for optional `--description` in `uv init` ([#&#8203;10209](astral-sh/uv#10209))
-   Ignore empty or missing hrefs in Simple HTML ([#&#8203;10276](astral-sh/uv#10276))
-   Patch pkgconfig files after Python install ([#&#8203;10189](astral-sh/uv#10189))

##### Performance

-   Actually use jemalloc as alternative allocator ([#&#8203;10269](astral-sh/uv#10269))
-   Parse URLs lazily in resolver ([#&#8203;10259](astral-sh/uv#10259))
-   Use `BTreeMap::range` to avoid iterating over unnecessary versions ([#&#8203;10266](astral-sh/uv#10266))

##### Bug fixes

-   Accept directories with space names in `uv init` ([#&#8203;10246](astral-sh/uv#10246))
-   Avoid forking on version in non-universal resolutions ([#&#8203;10274](astral-sh/uv#10274))
-   Avoid stripping query parameters from URLs ([#&#8203;10253](astral-sh/uv#10253))
-   Consider workspace dependencies to be 'direct' ([#&#8203;10197](astral-sh/uv#10197))
-   Detect cyclic dependencies during builds ([#&#8203;10258](astral-sh/uv#10258))
-   Guard against self-deletion in `uv venv` and `uv tool` ([#&#8203;10206](astral-sh/uv#10206))
-   Respect static metadata for already-installed distributions ([#&#8203;10242](astral-sh/uv#10242))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS45MC4yIiwidXBkYXRlZEluVmVyIjoiMzkuOTAuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
@lscorcia lscorcia deleted the issue-10157 branch September 26, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility Compatibility with a specification or another tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add platform support for ARMv5TE

2 participants