Skip to content

Commit

Permalink
python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoeders committed Dec 23, 2023
1 parent 48bfc87 commit 53ef163
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Get Diff Action
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VIVADO_PATH := "/tools/Xilinx/Vivado/2022.2/bin/vivado"
IN_ENV = if [ -e .venv/bin/activate ]; then . .venv/bin/activate; fi;
CAPNPJ := $(shell which capnpc-java)
PYTHON311 := $(shell which python3.11)
PYTHON312 := $(shell which python3.12)

PUBLIC_SUBMODULES = \
third_party/fasm2bels \
Expand All @@ -17,7 +18,9 @@ include external_tools.mk
install: submodules venv python_packages rapidwright env install_fasm2bels install_yosys install_wafove

venv:
ifneq "$(PYTHON311)" ""
ifneq "$(PYTHON312)" ""
python3.12 -m venv .venv
else ifneq "$(PYTHON311)" ""
python3.11 -m venv .venv
else
python3.10 -m venv .venv
Expand Down

0 comments on commit 53ef163

Please sign in to comment.