Skip to content

Commit

Permalink
Hack to get amaranth from git on newer Python versions.
Browse files Browse the repository at this point in the history
Fixes #26.

Should be removed after Amaranth 0.4 is released.

Signed-off-by: Tim 'mithro' Ansell <[email protected]>
  • Loading branch information
mithro committed Sep 5, 2023
1 parent 7e9e006 commit 8674fb5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/create_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
python3 -m venv venv
source venv/bin/activate
python3 -c 'import sys; print("Python version:", sys.version)'

# Until amaranth 0.4 is published, Pythons newer than 3.9 need to install from git.
if [ "$(python3 -c 'import sys; print(sys.version_info[1])')" -gt 9 ]; then
echo "Using Amaranth from GitHub as Python >3.9 (remove after Amaranth 0.4 is released)."
pip3 install "git+https://github.com/amaranth-lang/amaranth.git#egg=amaranth"
fi

pip3 install .
pip3 install unittest-parallel
pip3 install flake8
Expand Down

0 comments on commit 8674fb5

Please sign in to comment.