Skip to content

Commit 6a11cc4

Browse files
committed
Manage manual installation steps in install script
1 parent c50fa1d commit 6a11cc4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

_posts/2024-10-26-dynamic-dependency-management.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,18 @@ UNIQUE_UNIX_DEPENDENCIES=($(echo "${UNIX_DEPENDENCIES[@]}" | tr ' ' '\n' | sort
133133
UNIQUE_ACTIVE_MODULES=($(echo "${ACTIVE_MODULES[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '))
134134
UNIQUE_ADDITIONAL_URLS=($(echo "${ADDITIONAL_URLS[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '))
135135
136-
# # Update apt-get and install Unix dependencies
137-
# if [ ${#UNIQUE_UNIX_DEPENDENCIES[@]} -ne 0 ]; then
138-
# sudo apt-get update
139-
# for dep in "${UNIQUE_UNIX_DEPENDENCIES[@]}"; do
140-
# sudo apt-get install -y "$dep"
141-
# done
142-
# fi
143-
144-
# # Install Python dependencies explicitly using the virtual environment's pip
145-
# for dep in "${UNIQUE_PYTHON_DEPENDENCIES[@]}"; do
146-
# myenv/bin/python3 -m pip install "$dep"
147-
# done
136+
# Update apt-get and install Unix dependencies
137+
if [ ${#UNIQUE_UNIX_DEPENDENCIES[@]} -ne 0 ]; then
138+
sudo apt-get update
139+
for dep in "${UNIQUE_UNIX_DEPENDENCIES[@]}"; do
140+
sudo apt-get install -y "$dep"
141+
done
142+
fi
143+
144+
# Install Python dependencies explicitly using the virtual environment's pip
145+
for dep in "${UNIQUE_PYTHON_DEPENDENCIES[@]}"; do
146+
myenv/bin/python3 -m pip install "$dep"
147+
done
148148
149149
# Set execute permissions for additional scripts
150150
chmod 777 startup.sh stop.sh

0 commit comments

Comments
 (0)