-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update python to 3.11 #473
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should work fine :) especially with #384 (comment) out of the way.
- name: Install dependencies | ||
run: | | ||
python3 -m venv venv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setup-python should make python
enough; also, no need for venv I think, as the python that has been set up has one by default already (or is it the --break-system-packages
thing?)
python3 -m venv venv | |
python -m venv venv |
or even
python3 -m venv venv |
python3 -m pip install --upgrade pip | ||
pip3 install -r requirements-dev.txt | ||
python3 -m pip install -r requirements-dev.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be enough with setup-python (especially when using venv, but even without it)
python3 -m pip install -r requirements-dev.txt | |
pip install -r requirements-dev.txt |
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive \ | ||
apt-get install -y --no-install-recommends \ | ||
python3.10 python3-pip git yosys \ | ||
python3.11 python3-pip git yosys lsb-release \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed? Would love to see some explanation.
As pointed in #472 we need to update python to 3.11 to be allowed to inherit
__init__
inProtocol
. This pull request update docker files, docker images and documentation.It introduced venv to jobs which uses custom dockers because in python 3.11 installing packages system wide is disabled by default and
setup-python
don't work with custom docker images. There are reported issues (eg. actions/setup-python#719), but they aren't solved.I also updated
pip3 install ...
topython3 -m pip install ...
to always use the same python version (setup-python don't configure pip so it is used system wide instead of uploaded by setup-python).