Skip to content

Commit

Permalink
Export PIP_BREAK_SYSTEM_PACKAGES=1 by default.
Browse files Browse the repository at this point in the history
This avoids the error message when installing python packages,
that on Ubuntu you should install the python-xxxx packages instead of
using pip3 install, if possible.

When that is set the error is suppressed, and one doesn't need to
pass '--break-system-packages' to python manually.
  • Loading branch information
nikolaszimmermann authored and TingPing committed Jul 31, 2024
1 parent f81700f commit 38bbcbb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"

# Otherwise one has to pass --break-system-packages to python, when installing custom packages.
export PIP_BREAK_SYSTEM_PACKAGES=1

# wkdev-sdk integration
export WKDEV_SDK=/wkdev-sdk
export PATH="${WKDEV_SDK}/scripts:${WKDEV_SDK}/scripts/container-only:$(python3 -m site --user-base)/bin:${PATH}"
Expand Down
3 changes: 3 additions & 0 deletions images/wkdev_sdk/user_home_directory_defaults/dot-zprofile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"

# Otherwise one has to pass --break-system-packages to python, when installing custom packages.
export PIP_BREAK_SYSTEM_PACKAGES=1

# wkdev-sdk integration
export WKDEV_SDK=/wkdev-sdk
export PATH="${WKDEV_SDK}/scripts:${WKDEV_SDK}/scripts/container-only:$(python3 -m site --user-base)/bin:${PATH}"
3 changes: 3 additions & 0 deletions images/wkdev_sdk/user_home_directory_defaults/fish-config
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
set --export DEBUGINFOD_URLS "https://debuginfod.ubuntu.com"

# Otherwise one has to pass --break-system-packages to python, when installing custom packages.
set --export PIP_BREAK_SYSTEM_PACKAGES 1

fish_add_path "$(python3 -m site --user-base)/bin"

# wkdev-sdk integration
Expand Down

0 comments on commit 38bbcbb

Please sign in to comment.