Skip to content

enhance(python): mark architecture-independent Python packages as platform independent - #33467

Merged
twaik merged 6 commits into
termux:masterfrom
SjnExe:oci-cli-arch-independent
Dec 1, 2026
Merged

twaik merged 6 commits into
termux:masterfrom
SjnExe:oci-cli-arch-independent

Conversation

@SjnExe

@SjnExe SjnExe commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary of Changes

Marks 18 architecture-independent Python packages and subpackages with TERMUX_PKG_PLATFORM_INDEPENDENT=true (or TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true). These packages contain pure Python code, scripts, or tests without compiled ELF binaries or architecture-dependent native extensions, allowing Termux build infrastructure to build them once as _all.deb instead of compiling identical packages across four distinct architecture targets (aarch64, arm, i686, x86_64).

Part of architecture-independent package optimization split (<= 25 packages per PR, per TomJo2000 feedback):

Packages (18 Total)

azure-cli, blueprint-compiler, httpie, iredis, litecli, mycli, oci-cli, pgcli, pybind11, pypy (pypy-tests), pypy3 (pypy3-tests), python-cmake, python-opencv-python, python-trash-cli, python-xapp, mozo, thonny, video-downloader

Verification

All packages tested on physical Termux aarch64 device. All 18 CLI tools and libraries passed execution tests, --version checks, and module import tests. Zero ELF binaries or .so libraries are present in the resulting deb packages.

@SjnExe
SjnExe force-pushed the oci-cli-arch-independent branch from 4477c0b to cf278ae Compare November 18, 2026 04:13
@SjnExe

SjnExe commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

@GourangaDasSamrat What do you think about this PR and #33466

Both builds correctly, I just rebased.

@SjnExe
SjnExe marked this pull request as ready for review November 18, 2026 04:14
@GourangaDasSamrat

GourangaDasSamrat commented Nov 18, 2026 via email

Copy link
Copy Markdown
Contributor

@SjnExe

SjnExe commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

thanks for doing this, as far i know there is more python package's i maintained which can also be architecture independent so i think it would be better if you do them all in this pr with tree-wide commit.

Ok, I'll try to do that.

@GourangaDasSamrat

Copy link
Copy Markdown
Contributor

Also please test the packages on device cause passing build not ensure it would be work on user's device.

@GourangaDasSamrat

Copy link
Copy Markdown
Contributor

Try with all of this packages:

azure-cli
httpie
iredis
litecli
mycli
oci-cli
pgcli

@GourangaDasSamrat

Copy link
Copy Markdown
Contributor

close your 2nd enhance pr and do it here

@SjnExe

SjnExe commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Try with all of this packages:

azure-cli httpie iredis litecli mycli oci-cli pgcli

Ok, but testing on my aarch64 device will be enough? We don't need to test on 32bit/x86 ?

@GourangaDasSamrat

Copy link
Copy Markdown
Contributor

Try with all of this packages:
azure-cli httpie iredis litecli mycli oci-cli pgcli

Ok, but testing on my aarch64 device will be enough? We don't need to test on 32bit/x86 ?

this all are simple packages, they are not like electron or bun so aarch64 device is enough

@SjnExe
SjnExe marked this pull request as draft November 18, 2026 04:22
Comment thread packages/oci-cli/build.sh
TERMUX_PKG_HOMEPAGE=https://github.com/oracle/oci-cli
TERMUX_PKG_DESCRIPTION="Command line interface for Oracle Cloud Infrastructure"
TERMUX_PKG_LICENSE="UPL-1.0, Apache-2.0"
TERMUX_PKG_LICENSE_FILE="LICENSE.txt"

@GourangaDasSamrat GourangaDasSamrat Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this line is not necessary for this package. but @TomJo2000 can say better if this line important for this package or not.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomJo2000 can you confirm this?
Also tell me overall review of this PR, and anything i should have done different.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need to happen in this PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need to happen in this PR.

@GourangaDasSamrat you should make new PR regarding this if necessary.

@SjnExe
SjnExe force-pushed the oci-cli-arch-independent branch from cf278ae to 0cbe069 Compare November 18, 2026 04:48
@SjnExe SjnExe changed the title enhance(main/oci-cli): mark as architecture independent enhance(main): mark python CLI packages as architecture independent Nov 18, 2026
@SjnExe SjnExe changed the title enhance(main): mark python CLI packages as architecture independent enhance(main): mark architecture-independent packages as platform independent Nov 18, 2026
@SjnExe
SjnExe force-pushed the oci-cli-arch-independent branch 8 times, most recently from 56a58c3 to c292d97 Compare November 18, 2026 15:09
@SjnExe
SjnExe marked this pull request as ready for review November 19, 2026 03:49
@SjnExe
SjnExe requested a review from licy183 as a code owner November 19, 2026 03:49
@SjnExe
SjnExe force-pushed the oci-cli-arch-independent branch from c292d97 to 2b4ffa4 Compare November 19, 2026 03:57
@SjnExe

SjnExe commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

67 76 69💀 Looks so "random"
Edit: Even PR number 🙆🏻‍♂️

@TomJo2000 TomJo2000 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did you check if the packages are architecture independent anyway?
git sure as hell is not.
I have not checked all of the other ones but I have some doubts after that.

A package is only generally architecture independent if it contains no ELF files, that means binary executables or shared/static library files.

@TomJo2000

Copy link
Copy Markdown
Member

Oh I see you only marked a sub package of git as architecturew independent.

@SjnExe

SjnExe commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

How did you check if the packages are architecture independent anyway? git sure as hell is not. I have not checked all of the other ones but I have some doubts after that.

A package is only generally architecture independent if it contains no ELF files, that means binary executables or shared/static library files.

I searched for packages with no ELF, read build scripts and downloaded packages from repo too. You can understand why a package was chosen by checking description.

@SjnExe

SjnExe commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

@TomJo2000 currently build failed due to connection timeout, i don't know if i should leave it there or not, because it can give success when you guys merge it.
Can you approve it if you don't see any issues?

I tested every packages on my device, also about the failure happening currently, I tested it before i rebased. It was giving 100% success before i rebased.

@TomJo2000

Copy link
Copy Markdown
Member

This might be a bit much for one CI run.

@SjnExe

SjnExe commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

This might be a bit much for one CI run.

I can split

@SjnExe

SjnExe commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

I'll see what splitting I can do

@TomJo2000

Copy link
Copy Markdown
Member

The golang one should be separate just to avoid dragging in the validation workflow.
And other than that I'd say keep it to like 25 packages per PR at most, anything more and you're gonna hit a bunch of merge conflicts before these are done.

@SjnExe
SjnExe force-pushed the oci-cli-arch-independent branch from a764889 to fdb423a Compare November 19, 2026 07:08
@SjnExe SjnExe changed the title enhance(main): mark architecture-independent packages as platform independent enhance(python): mark architecture-independent Python packages as platform independent Nov 19, 2026
@SjnExe

SjnExe commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

@TomJo2000 I did the split, everything is queued, i don't have permission to cancel workflows from old commits. I don't know if validation is even needed or not, if not , we can cancel those workflows.

@SjnExe

SjnExe commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

@TomJo2000 Can you review all PRs?

#33504 has a failure due to timeout, but that same package was built in other job. So the CI might pass when you guys merge it, or have to retrigger it. Or I can isolate that package into a PR if necessary.

@SjnExe
SjnExe force-pushed the oci-cli-arch-independent branch 2 times, most recently from 704af12 to cd84dd8 Compare November 25, 2026 02:11
@SjnExe

SjnExe commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

@TomJo2000 this PR passes architecture independent check made by twaik, can you merge it?

@SjnExe
SjnExe force-pushed the oci-cli-arch-independent branch from cd84dd8 to 130b210 Compare November 25, 2026 03:01
@SjnExe

SjnExe commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Someone please merge #33504 , #33503 and #33467

I had to remove some packages because they were timing out downloads

Twaik's check caught some packages that weren't indipendent

@SjnExe

SjnExe commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

😑Day by day conflicts are happening, should i leave this as is.

@twaik
twaik force-pushed the oci-cli-arch-independent branch from 130b210 to ab718a7 Compare December 1, 2026 19:12
@twaik
twaik merged commit dcb7429 into termux:master Dec 1, 2026
11 checks passed
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.

4 participants