flatpak: update to freedesktop.org SDK 18.08

This one now includes Python 3.7, so we don't need to do it build it
ourselves. Fix the kete path up for 3.7 as well so this works again.

And finally, fix the pip incovations, the current ones we have install into
/usr/ which is read-only. Use the pip3 command generated by the
flatpak-pip-generator as listed on http://docs.flatpak.org/en/latest/python.html

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/133/head
Peter Hutterer 2019-06-07 14:29:52 +10:00
parent 0ddc33a37b
commit a1ca70df28
1 changed files with 7 additions and 31 deletions

View File

@ -3,7 +3,7 @@
"command": "/app/bin/tuhi",
"runtime": "org.freedesktop.Platform",
"sdk": "org.freedesktop.Sdk",
"runtime-version": "1.6",
"runtime-version": "18.08",
"cleanup": [ "/cache",
"/include",
"/lib/pkgconfig",
@ -26,27 +26,11 @@
"--own-name=org.freedesktop.tuhi1"
],
"modules": [
{
"name": "cpython",
"sources": [
{
"type": "archive",
"url": "https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz",
"sha256": "159b932bf56aeaa76fd66e7420522d8c8853d486b8567c459b84fe2ed13bcaba"
}
]
},
{
"name": "pycairo",
"build-options" : {
"env": {
"PYTHON": "/app/bin/python3"
}
},
"buildsystem": "simple",
"build-commands": [
"python3 ./setup.py sdist",
"pip3 install dist/*.tar.gz"
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ."
],
"sources": [
{
@ -59,11 +43,6 @@
{
"name": "pygobject",
"config-opts": ["--enable-compile-warnings=minimum"],
"build-options" : {
"env": {
"PYTHON": "/app/bin/python3"
}
},
"sources": [
{
"type": "archive",
@ -82,8 +61,7 @@
}
],
"build-commands": [
"python3 ./setup.py sdist",
"pip3 install dist/*.tar.gz"
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ."
]
},
{
@ -97,8 +75,7 @@
}
],
"build-commands": [
"python3 ./setup.py sdist",
"pip3 install dist/*.tar.gz"
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ."
]
},
{
@ -111,8 +88,7 @@
}
],
"build-commands": [
"python3 ./setup.py sdist",
"pip3 install dist/*.tar.gz"
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ."
]
},
{
@ -125,10 +101,10 @@
}
],
"build-commands": [
"python3 setup.py install --verbose"
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ."
],
"post-install": [
"cp tools/kete.py /app/lib/python3.6/site-packages/kete.py",
"cp tools/kete.py /app/lib/python3.7/site-packages/kete.py",
"cp tools/tuhi-kete-sandboxed.py /app/bin/tuhi-kete",
"chmod +x /app/bin/tuhi-kete"
]