A nightly cpython flatpak builder.
For official cpython releases, please refer to tags, they match the official cpython releases.
- Fedora based:
sudo dnf install flatpak flatpak-builder
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- Debian based:
sudo apt install flatpak flatpak-builder
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
This will install flatpak SDK, fetch the cpython source from github, build it, and install it locally as a flatpak repo.
sh build.sh # or ./build.sh
After installtion, the binary is found under the following path:
$HOME/.local/share/flatpak/app/org.flatpak.Python/current/active/files/bin/python3.9 /usr/local/bin/python3.9
and a symlink to it is created under /usr/local/bin/python3.9
.
directly in terminal:
$ python3.9
Python 3.9.0a1+ (heads/master:ded8888, Nov 23 2019, 20:23:27)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys; print(sys.version_info)
sys.version_info(major=3, minor=9, micro=0, releaselevel='alpha', serial=1)