# Enter flatpak
./Tools/Scripts/webkit-flatpak --release --wpe bash
# Install pyenv somewhere else to avoid messing with host
export PYENV_ROOT=/home/lauro/pyenv-flatpak
git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT
export PATH=$PYENV_ROOT/bin:$PATH
eval "$(pyenv init -)"
# Check available versions. 'system' will point to flatpak's 3.10.6
# as of SDK 22.08 in Dec-2022
pyenv versions
python --version
# Should output 3.10.6
pyenv install 3.9.9
pyenv shell 3.9.9
python --version
# Should output 3.9.9
./Tools/Scripts/run-webkit-tests ...
Created
December 12, 2022 11:54
-
-
Save lauromoura/5159c8428048d7d592b2562a142f3cf2 to your computer and use it in GitHub Desktop.
Using different python versions with pyenv inside flatpak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment