Skip to content

Commit 269fe55

Browse files
committed
Nuke some dead code.
1 parent 3d42c09 commit 269fe55

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

cmudb/env/packages.sh

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -102,34 +102,14 @@ install() {
102102
esac
103103
}
104104

105-
install_pip() {
106-
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
107-
python get-pip.py
108-
rm get-pip.py
109-
}
110-
111105
install_linux() {
112106
# Update apt-get.
113107
apt-get -y update
114108

115109
# Install packages. Note that word splitting is desired behavior.
116-
if [ "$INSTALL_TYPE" == "build" ] || [ "$INSTALL_TYPE" = "all" ]; then
110+
if [ "$INSTALL_TYPE" = "all" ]; then
117111
apt-get -y install $( IFS=$' '; echo "${LINUX_BUILD_PACKAGES[*]}" )
118112
fi
119-
if [ "$INSTALL_TYPE" == "test" ] || [ "$INSTALL_TYPE" = "all" ]; then
120-
apt-get -y install $( IFS=$' '; echo "${LINUX_TEST_PACKAGES[*]}" )
121-
fi
122-
123-
if [ "$INSTALL_TYPE" == "build" ] || [ "$INSTALL_TYPE" = "all" ]; then
124-
for pkg in "${PYTHON_BUILD_PACKAGES[@]}"; do
125-
python3 -m pip show $pkg || python3 -m pip install $pkg
126-
done
127-
fi
128-
if [ "$INSTALL_TYPE" == "test" ] || [ "$INSTALL_TYPE" = "all" ]; then
129-
for pkg in "${PYTHON_TEST_PACKAGES[@]}"; do
130-
python3 -m pip show $pkg || python3 -m pip install $pkg
131-
done
132-
fi
133113
}
134114

135115
main "$@"

0 commit comments

Comments
 (0)