Skip to content
Snippets Groups Projects
Commit 365dfe17 authored by Timothee Besset's avatar Timothee Besset
Browse files

add python 3.12 support to the linux build

parent 5bb8cb0f
No related branches found
No related tags found
No related merge requests found
......@@ -79,9 +79,9 @@ Instructions below use [pipenv](https://pipenv.pypa.io/en/latest/), but can be a
## One time setup:
From a blank Ubuntu 18 (bionic) VM, or via toolbox, podman, docker etc.:
From a blank Ubuntu 20.04 (focal) - via VM, toolbox, podman, docker etc.:
Installing 3.9, 3.10, 3.11 backports from https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
Installing 3.9, 3.10, 3.11, 3.12 backports from https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
As root:
......@@ -89,7 +89,7 @@ As root:
$ add-apt-repository ppa:deadsnakes/ppa
$ apt-get update
$ apt-get upgrade
$ apt-get install gcc python3.9 python3.9-dev python3.9-distutils python3.10 python3.10-dev python3.10-distutils python3.11 python3.11-dev python3.11-distutils
$ apt-get install gcc g++ python3.9 python3.9-dev python3.9-distutils python3.10 python3.10-dev python3.10-distutils python3.11 python3.11-dev python3.11-distutils python3.12 python3.12-dev python3.12-distutils
```
Boostrapping pip and pipenv.
......@@ -104,6 +104,8 @@ $ python3.10 ./get-pip.py
$ python3.10 -m pip install pipenv
$ python3.11 ./get-pip.py
$ python3.11 -m pip install pipenv
$ python3.12 ./get-pip.py
$ python3.12 -m pip install pipenv
```
## Package:
......
......@@ -41,7 +41,7 @@ if __name__ == '__main__':
sys.stderr = Unbuffered(sys.stderr)
os.makedirs(ARTIFACTS_DIR, exist_ok=True)
for python_minor in (9, 10, 11):
for python_minor in (9, 10, 11, 12):
build_dir = os.path.abspath(os.path.join(ROOT_DIR, f'../steamos-devkit-py3{python_minor}'))
interpreter = f'python3.{python_minor}'
# using pipenv wasn't the best idea for CI, it leaves it's files in ~/.local/share/virtualenvs/,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment