Skip to content

Commit 8674fb5

Browse files
committed
Hack to get amaranth from git on newer Python versions.
Fixes #26. Should be removed after Amaranth 0.4 is released. Signed-off-by: Tim 'mithro' Ansell <[email protected]>
1 parent 7e9e006 commit 8674fb5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ci/create_venv.sh

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
python3 -m venv venv
44
source venv/bin/activate
55
python3 -c 'import sys; print("Python version:", sys.version)'
6+
7+
# Until amaranth 0.4 is published, Pythons newer than 3.9 need to install from git.
8+
if [ "$(python3 -c 'import sys; print(sys.version_info[1])')" -gt 9 ]; then
9+
echo "Using Amaranth from GitHub as Python >3.9 (remove after Amaranth 0.4 is released)."
10+
pip3 install "git+https://github.com/amaranth-lang/amaranth.git#egg=amaranth"
11+
fi
12+
613
pip3 install .
714
pip3 install unittest-parallel
815
pip3 install flake8

0 commit comments

Comments
 (0)