Skip to content

Fix noble wheel packaging globs#32

Merged
mutability merged 1 commit intoflightaware:ubuntu-packagingfrom
caiusseverus:ubuntu-packaging
Apr 4, 2026
Merged

Fix noble wheel packaging globs#32
mutability merged 1 commit intoflightaware:ubuntu-packagingfrom
caiusseverus:ubuntu-packaging

Conversation

@caiusseverus
Copy link
Copy Markdown

Fixed the Ubuntu 24.04 (noble) packaging path for piaware.

The build was failing in the vendored Python packaging steps used for mlat-client freezing. Two upstream tarballs, freeze-core-0.4.2 and cx_Freeze-8.5.0, ship pyproject.toml metadata that newer upstream tooling accepts but Ubuntu 24.04’s setuptools rejects.

This change patches both archives during sensible-build.sh preparation so their license metadata is compatible with the distro toolchain. It also fixes the trixie packaging recipe to install the generated wheels using the correct wheel filename patterns for cx_Freeze and MlatClient.

Successfully builds in github actions.

@mutability
Copy link
Copy Markdown
Contributor

Thanks!

I wonder if this will break the actual trixie build, but I don't have a simple way of doing a test build against a PR from an external branch without actually merging the PR so I'll just merge this and see what breaks..

@mutability mutability merged commit 80c5c92 into flightaware:ubuntu-packaging Apr 4, 2026
2 checks passed
@mutability
Copy link
Copy Markdown
Contributor

This does break the trixie build (but not for the reason I expected)

setuptools complains about the (patched) license description, but continues anyway:

/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated

The glob change fails on trixie:

Successfully built cx_freeze-8.5.0-py3-none-linux_armv7l.whl
/build/actions-runners/2/_work/_temp/build-trixie-armhf/debian/venv/bin/python -m pip install --no-index --no-deps --ignore-installed --require-virtualenv /build/actions-runners/2/_work/_temp/build-trixie-armhf/wheels/cx_Freeze-8.5.0-*.whl
WARNING: Requirement '/build/actions-runners/2/_work/_temp/build-trixie-armhf/wheels/cx_Freeze-8.5.0-*.whl' looks like a filename, but the file does not exist
ERROR: Invalid wheel filename (wrong number of parts): 'cx_Freeze-8.5.0-*'
make[1]: *** [debian/rules:87: build_mlat-client] Error 1
make[1]: Leaving directory '/build/actions-runners/2/_work/_temp/build-trixie-armhf'

@mutability
Copy link
Copy Markdown
Contributor

Some brief research suggests that this is about setuptools/wheel originally not normalizing wheel filenames (which includes forcing them to lowercase), and newer versions now do. Yay.

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.

2 participants