Skip to content

Commit fcdac9c

Browse files
committed
Fix missing dependencies
Signed-off-by: Wade Barnes <[email protected]>
1 parent 9297736 commit fcdac9c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

build-scripts/ubuntu-2204/prepare-package.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ bash -ex $GENERATE_MANIFEST_SCRIPT
2525
cat $module_name/__manifest__.json
2626

2727
if [ "$distro_packages" = "debian-packages" ]; then
28+
# Only used for the deb package builds, NOT for the PyPi package builds.
2829
echo -e "\n\nPrepares indy-node debian package version"
2930
sed -i -r "s~indy-node==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-node==\1\~\3~" setup.py
3031

31-
# Update the package names to match the names that are available on the os.
32-
echo -e "\nAdapt the dependencies for the Canonical archive"
33-
sed -i "s~timeout-decorator~python3-timeout-decorator~" setup.py
34-
sed -i "s~distro~python3-distro~" setup.py
32+
# Update the package names to match the versions that are pre-installed on the os.
33+
echo -e "\nAdapting the dependencies for the Canonical archive"
34+
sed -i "s~timeout-decorator>=0.5.0~python3-timeout-decorator==0.5.0-1~" setup.py
35+
sed -i "s~distro==1.7.0~python3-distro==1.7.0-1~" setup.py
3536
sed -i "s~importlib-metadata=~python3-importlib-metadata=~" setup.py
36-
37+
3738
echo "Preparing config files"
3839
GENERAL_CONFIG_DIR="\/etc\/indy"
3940
REPO_GENERAL_CONFIG_DIR="indy_node/general_config"
@@ -54,4 +55,4 @@ fi
5455

5556
popd
5657

57-
echo -e "\nFinished preparing $repo for publishing\n"
58+
echo -e "\nFinished preparing $repo for publishing\n"

0 commit comments

Comments
 (0)