Skip to content

Commit

Permalink
Allow pip usage globally
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Apr 11, 2024
1 parent 30e9d11 commit ba7f15b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
3 changes: 0 additions & 3 deletions builder/image-ros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ my_travis_retry() {
return $result
}

echo "Enable installing packages with pip"
mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old

# TODO: 'kinetic-rosdep-clover.yaml' should add only if we use our repo?
echo_stamp "Init rosdep"
my_travis_retry rosdep init
Expand Down
21 changes: 12 additions & 9 deletions builder/image-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,24 @@ echo_stamp "Make sure pip is installed"
pip --version
pip3 --version

echo "Enable installing packages with pip"
mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old

echo_stamp "Install rosdep"
my_travis_retry pip3 install --break-system-packages -U rosdep
my_travis_retry pip3 install -U rosdep

echo_stamp "Install and enable Butterfly (web terminal)"
echo_stamp "Workaround for tornado >= 6.0 breaking butterfly"
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
my_travis_retry pip3 install --break-system-packages cryptography==3.4.6 # https://stackoverflow.com/a/68472128/6850197
my_travis_retry pip3 install --break-system-packages pyOpenSSL==20.0.1
my_travis_retry pip3 install --break-system-packages tornado==5.1.1
my_travis_retry pip3 install --break-system-packages butterfly
my_travis_retry pip3 install --break-system-packages butterfly[systemd]
my_travis_retry pip3 install cryptography==3.4.6 # https://stackoverflow.com/a/68472128/6850197
my_travis_retry pip3 install pyOpenSSL==20.0.1
my_travis_retry pip3 install tornado==5.1.1
my_travis_retry pip3 install butterfly
my_travis_retry pip3 install butterfly[systemd]
systemctl enable butterfly.socket

echo_stamp "Install ws281x library"
my_travis_retry pip3 install --break-system-packages --prefer-binary rpi_ws281x
my_travis_retry pip3 install --prefer-binary rpi_ws281x

echo_stamp "Setup Monkey"
mv /etc/monkey/sites/default /etc/monkey/sites/default.orig
Expand All @@ -166,11 +169,11 @@ rm node-v10.15.0-linux-armv6l.tar.gz

echo_stamp "Installing ptvsd"
#my_travis_retry pip install ptvsd
my_travis_retry pip3 install --break-system-packages ptvsd
my_travis_retry pip3 install ptvsd

echo_stamp "Installing pyzbar"
#my_travis_retry pip install pyzbar
my_travis_retry pip3 install --break-system-packages pyzbar
my_travis_retry pip3 install pyzbar

echo_stamp "Add .vimrc"
cat << EOF > /home/pi/.vimrc
Expand Down

0 comments on commit ba7f15b

Please sign in to comment.