Add Debian package (.deb) support to Python binary builds#1
Open
Add Debian package (.deb) support to Python binary builds#1
Conversation
Co-authored-by: anubhavkrishna1 <182243148+anubhavkrishna1@users.noreply.github.com>
…and updated documentation Co-authored-by: anubhavkrishna1 <182243148+anubhavkrishna1@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] pack python3 binary in also deb file
Add Debian package (.deb) support to Python binary builds
Sep 6, 2025
There was a problem hiding this comment.
Pull Request Overview
This PR adds Debian package (.deb) support to the existing Python binary build system, allowing users to install Python binaries as proper Debian packages alongside the existing tar.gz and zip archives.
- Added .deb package creation to both standard and glibc236 build workflows
- Updated README with comprehensive installation and uninstallation instructions for deb packages
- Enhanced release artifacts to include .deb files with SHA256 checksums
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| README.md | Added deb package installation instructions and uninstallation section |
| .github/workflows/build.yml | Added deb packaging tools and deb package creation step |
| .github/workflows/build-glibc236.yml | Added deb packaging tools and deb package creation step for glibc236 builds |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| echo "Priority: optional" >> deb_package/DEBIAN/control | ||
| echo "Architecture: amd64" >> deb_package/DEBIAN/control | ||
| echo "Installed-Size: $INSTALLED_SIZE" >> deb_package/DEBIAN/control | ||
| echo "Depends: libc6 (>= 2.17), libssl3 | libssl1.1, zlib1g, libbz2-1.0, libffi8 | libffi7 | libffi6, libgdbm6 | libgdbm5, liblzma5, libncurses6 | libncurses5, libreadline8 | libreadline7 | libreadline6, libsqlite3-0, uuid-runtime" >> deb_package/DEBIAN/control |
There was a problem hiding this comment.
This long dependency line is difficult to read and maintain. Consider breaking it into multiple echo statements or using a multi-line approach for better readability.
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.
This PR implements support for creating Debian packages (.deb files) alongside the existing tar.gz and zip binary archives, addressing the request to "pack python3 binary in also deb file".
Changes Made
Workflow Enhancements
build.ymlandbuild-glibc236.ymlworkflows now installdpkg-debandfakeroottools required for creating Debian packages.debfiles alongside existing formats, with SHA256 checksums for all package typesPackage Details
python<major.minor>-custom(e.g.,python3.11-custom) installed to/opt/python-<version>/python<major.minor>-custom-glibc236installed to/opt/python-<version>-glibc236/Documentation Updates
Usage Examples
Installing a deb package:
Uninstalling:
Benefits
The implementation maintains minimal changes to existing workflows while adding comprehensive deb package support that integrates seamlessly with the current build process.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.