Skip to content

Instantly share code, notes, and snippets.

@ytomino
Last active April 10, 2023 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ytomino/8997b2ed37175260432673fc753bf2b3 to your computer and use it in GitHub Desktop.
Save ytomino/8997b2ed37175260432673fc753bf2b3 to your computer and use it in GitHub Desktop.
Close the application fetched with pip into flatpak.
app-id: jp.halfmoon.panathenaia.pip
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
#sdk-extensions:
build-options:
build-args:
- --filesystem=/var/tmp
- --share=network
strip: false
no-debuginfo: true
no-debuginfo-compression: true
finish-args:
- --unshare=network
command: /app/python3-venv/bin/python3
modules:
- name: pip
buildsystem: simple
# sources:
build-commands:
- cd /app && python3 -m venv python3-venv
- cd /app/python3-venv
&& . bin/activate
&& pip3 install --cache-dir /var/tmp/pip wheel
&& pip3 install --cache-dir /var/tmp/pip ablog sphinx-intl
- find /app/python3-venv -type f -not -name '*.pyc' -print0 | xargs -0 chmod -w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment