pyapp icon indicating copy to clipboard operation
pyapp copied to clipboard

Reduce distribution size with install-only-stripped builds

Open Coruscant11 opened this issue 1 year ago • 2 comments

Hello! 👋

Since the 20240726 release of python-build-standalone, a new kind of distributions builds are available.

A new install_only_stripped variant is now included in the release (https://github.com/indygreg/python-build-standalone/pull/279). These builds are constructed by taking the install_only variant for each platform and stripping any debug symbols. The resulting builds are significantly smaller, especially on Windows and Linux, but omit debugging symbols. The install_only builds continue to preserve such symbols.

=> Smaller binaries with embeded distributions, and smaller downloads 🚀

Some examples: image

image

I will make a related pull-request 🙂

Coruscant11 avatar Aug 14 '24 22:08 Coruscant11

How about using uv as downstream python bootstrapper?

T-256 avatar Aug 31 '24 21:08 T-256

How about using uv as downstream python bootstrapper?

Indeed, I agree to the idea, but currently pyapp also supports regular pip too.. But could be discussed for a future PR I guess

Coruscant11 avatar Sep 01 '24 13:09 Coruscant11

https://github.com/ofek/pyapp/pull/160#issuecomment-2408805608

ofek avatar Oct 13 '24 03:10 ofek