Skip to content

Commit 601be90

Browse files
committed
Use stripped versions of Standalone Python for Linux
- Introduces minimum target version 0.3.20 for Flatpak and AppImage since only newer versions of Standalone Python provided the stripped versions.
1 parent 5ee1a34 commit 601be90

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

changes/1929.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Apps packaged for Flatpak and AppImage now use a stripped (and smaller) Python support package.

src/briefcase/platforms/linux/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def support_package_url(self, support_revision):
7777
version, datestamp = support_revision.split("+")
7878
return (
7979
"https://github.com/indygreg/python-build-standalone/releases/download/"
80-
f"{datestamp}/cpython-{support_revision}-{python_download_arch}-unknown-linux-gnu-install_only.tar.gz"
80+
f"{datestamp}/"
81+
f"cpython-{support_revision}-{python_download_arch}-unknown-linux-gnu-install_only_stripped.tar.gz"
8182
)
8283

8384
def vendor_details(self, freedesktop_info):

src/briefcase/platforms/linux/appimage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class LinuxAppImagePassiveMixin(LinuxMixin):
3636
supported_host_os_reason = (
3737
"Linux AppImages can only be built on Linux, or on macOS using Docker."
3838
)
39+
platform_target_version = "0.3.20"
3940

4041
def appdir_path(self, app):
4142
return self.bundle_path(app) / f"{app.formal_name}.AppDir"

src/briefcase/platforms/linux/flatpak.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class LinuxFlatpakMixin(LinuxMixin):
1919
output_format = "flatpak"
2020
supported_host_os = {"Linux"}
2121
supported_host_os_reason = "Flatpaks can only be built on Linux."
22+
platform_target_version = "0.3.20"
2223

2324
def binary_path(self, app):
2425
# Flatpak doesn't really produce an identifiable "binary" as part of its

0 commit comments

Comments
 (0)