Skip to content

Commit fc38584

Browse files
authored
build(backend): fix broken and slow pip-compile.sh (#5239)
### 💭 Notes Script was broken due to incomplete removals in #5125 and #5127. Slow steps of installing `gcc` and `libpq-dev` are unnecessary, even when upgrading `psycopg`. Internal discussion: https://chat.kobotoolbox.org/#narrow/stream/4-Kobo-Dev/topic/pip-tools/near/482296
1 parent a0cb1b5 commit fc38584

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pip-compile.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
#!/bin/bash
22

3-
if [ -z "$(dpkg -l|grep 'libpq-dev')" ]; then
4-
echo "Installing dependencies needed to pip-compile..."
5-
apt-get -qq update && apt-get -qq -y install gcc libpq-dev
6-
fi
3+
set -x # give the human some hope of progress
74

85
for in_file in dependencies/pip/*.in
96
do
107
# pass any arguments to pip-compile
118
# useful for switches like `--upgrade-package`
129
pip-compile "$@" "$in_file" || exit $?
1310
done
14-
for out_file in dependencies/pip/*.txt

0 commit comments

Comments
 (0)