Skip to content

Commit

Permalink
Fix: Solved CI issue creating the compiled package.
Browse files Browse the repository at this point in the history
  • Loading branch information
nesitor committed Dec 3, 2024
1 parent 6836d6d commit 9b43483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ dependencies = [
"solathon==1.0.2",
"sqlalchemy[asyncio]>=2",
"systemd-python==235",
# Fixing this protobuf dependency version to avoid getting CI errors as version 5.29.0 have this compilation issue
"protobuf==5.28.3"
]

urls.Discussions = "https://community.aleph.im/"
Expand Down
3 changes: 2 additions & 1 deletion runtimes/aleph-debian-12-python/create_disk_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ locale-gen en_US.UTF-8
echo "Pip installing aleph-sdk-python"
mkdir -p /opt/aleph/libs
pip3 install --target /opt/aleph/libs 'aleph-sdk-python==1.0.0' 'aleph-message==0.4.9' 'fastapi~=0.109.2'
# Fixing this protobuf dependency version to avoid getting CI errors as version 5.29.0 have this compilation issue.
pip3 install --target /opt/aleph/libs 'aleph-sdk-python==1.0.0' 'aleph-message==0.4.9' 'fastapi~=0.109.2' 'protobuf==5.28.3'
# Compile Python code to bytecode for faster execution
# -o2 is needed to compile with optimization level 2 which is what we launch init1.py ("python -OO")
Expand Down

0 comments on commit 9b43483

Please sign in to comment.