[BUILD] Restore Debian/RPM packaging lost in history rewrite; add openEuler 24.03 RPM support#794
Merged
Conversation
…Euler 24.03 support Packaging from flagos-ai#607 (merged 2026-06-03, commit e56773e) is no longer on main after the branch history was rewritten; this restores it and brings it up to date with the current tree: - Recovered as-is: packaging/{debian,rpm,INSTALL.md,README.md,spike}, .github/workflows/build-{deb,rpm}.yml, .dockerignore. - Re-ported to the post-rewrite layout: setup.py / pyproject.toml / MANIFEST.in moved to the repo root — wheel-builder COPY lists and build WORKDIR updated in both Dockerfiles (narrow COPY kept so packaging-only edits don't invalidate the ~50 min wheel layer). - New FLAGTREE_DEFAULT_BACKENDS env knob (setup_tools/utils/tools.py): packaging builds pin nvidia,amd — the historical package contents. The new tileir default backend requires GCC >= 13 and the cuda-tile submodule, which distro toolchains (openEuler 24.03: GCC 12.3) cannot satisfy. - openEuler 24.03 support: RPM_BASE_IMAGE passthrough in the build script, fedora43 + openeuler2403 CI matrix (Fedora artifact name unchanged), %dist reconstruction on openEuler images, and %% escaping in spec preamble comments (openEuler's rpm expands macros inside comments; a bare %install there terminates the preamble). Verified locally: - fedora43: python3-flagtree-nvidia-0.5.0-1.fc43.x86_64.rpm (cp314) - openeuler2403: python3-flagtree-nvidia-0.5.0-1.oe2403.x86_64.rpm (cp311); installs on openeuler/openeuler:24.03-lts and 'import triton' succeeds (3.6.0).
This was referenced Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restores the Debian/RPM packaging merged in #607 — the merge commit
(
e56773e1) is no longer an ancestor ofmainafter the branchhistory was rewritten, so all packaging files vanished from the tree
— and extends it with openEuler 24.03 LTS RPM support (part of
the FlagOS-on-openEuler effort; same pattern as
flagos-ai/FlagSparse#29 and flagos-ai/FlagAttention#35, both green).
What changed
Recovered from the #607 merge commit (unchanged):
packaging/{debian,rpm,INSTALL.md,README.md,spike},.github/workflows/build-{deb,rpm}.yml,.dockerignore.Re-ported to the post-rewrite tree:
setup.py/pyproject.toml/MANIFEST.inmoved to the reporoot — wheel-builder COPY lists and build WORKDIR updated in both
Dockerfiles. The narrow COPY is kept on purpose: packaging-only
edits must not invalidate the ~50 min wheel layer.
tileirdefault backend requires GCC >= 13 and thecuda-tilesubmodule; distro toolchains can't satisfy that(openEuler 24.03 ships GCC 12.3). Added a
FLAGTREE_DEFAULT_BACKENDSenv knob inpython/setup_tools/utils/tools.py(one field change, defaultunchanged:
nvidia,amd,tileir); packaging builds pinFLAGTREE_DEFAULT_BACKENDS=nvidia,amd— the same contents thehistorical wheel/packages shipped.
openEuler 24.03 additions:
build-flagtree-rpm.sh:RPM_BASE_IMAGEenv passthrough(default
fedora:43unchanged).build-rpm.yml:fedora43+openeuler2403matrix(
fail-fast: false); the Fedora artifact keeps its exact name(
flagtree-nvidia-rpm-packages), openEuler uploads asflagtree-nvidia-oe2403-rpm-packages.Dockerfile.rpm: reconstructs the empty%diston openEulerimages (
.oe2403).flagtree.spec:%%-escaped macros in preamble comments —openEuler's rpm expands macros inside comments, and the bare
%installin the usage note terminated the preamble("Version field must be present" errors).
Tested
Both matrix targets built locally end-to-end:
python3-flagtree-nvidia-0.5.0-1.fc43.x86_64.rpmpython3-flagtree-nvidia-0.5.0-1.oe2403.x86_64.rpmopeneuler/openeuler:24.03-lts;import tritonOK (3.6.0)The openEuler cp311 package is the missing piece that unblocks
dnf install python3-flagtree-nvidiaon openEuler 24.03 (thepreviously published cp310 build is Python-ABI-locked).
Limitations
build-deb.ymlrestored as-is (ubuntu22.04/cp310); openEuleraffects the RPM side only.
transient download failures fail the job (retry).