Skip to content

Commit 43834e8

Browse files
author
Vladimir Kotal
committed
use sudo -H when installing Python packages
1 parent 52b680e commit 43834e8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dev/before_install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
3030
# Bitkeeper install failure is not critical, so exit code is not checked.
3131
sudo ./dev/install-bitkeeper.sh
3232

33-
sudo ./dev/install-python-packages.sh
33+
sudo -H ./dev/install-python-packages.sh
3434
if [[ $? != 0 ]]; then
3535
echo "cannot install Python packages"
3636
exit 1

dev/install-python-packages.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

3+
echo "Installing/upgrading pip.."
34
python3 -m pip install --upgrade pip
45

6+
echo "Installing Python packages.."
57
python3 -m pip install pep8 virtualenv
68
if [[ $? != 0 ]]; then
79
echo "cannot install Python packages"

0 commit comments

Comments
 (0)