Skip to content

Commit

Permalink
[r-apt][r-rig] set PIP_BREAK_SYSTEM_PACKAGES=1 when installing pip pa…
Browse files Browse the repository at this point in the history
…ckages (#164)

Close #162
  • Loading branch information
eitsupi authored Jun 23, 2023
1 parent c926012 commit 86da85d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/r-apt/NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ For more information, please check [the Rocker Project website](https://rocker-p
This feature has some options to install Python packages such as `jupyterlab`.
When installing Python packages, if `python3 -m pip` is not available, it will install `python3-pip` via apt.

This feature set `PIP_BREAK_SYSTEM_PACKAGES=1` when installing Python packages.

## References

- [Rocker Project](https://rocker-project.org)
2 changes: 1 addition & 1 deletion src/r-apt/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "R (via apt)",
"id": "r-apt",
"version": "0.3.3",
"version": "0.3.4",
"description": "Installs the latest R, some R packages, and needed dependencies. Note: May require source code compilation for some R packages.",
"documentationURL": "https://github.com/rocker-org/devcontainer-features/tree/main/src/r-apt",
"options": {
Expand Down
1 change: 1 addition & 0 deletions src/r-apt/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ install_pip_packages() {
packages="$*"
if [ -n "${packages}" ]; then
check_pip
export PIP_BREAK_SYSTEM_PACKAGES=1
# shellcheck disable=SC2086
python3 -m pip install --upgrade --no-cache-dir --no-warn-script-location ${packages}
fi
Expand Down
2 changes: 2 additions & 0 deletions src/r-rig/NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ $ R -q -e 'pak::pak("curl")'
This feature has some options to install Python packages such as `jupyterlab`.
When installing Python packages, if `python3 -m pip` is not available, it will install `python3-pip` via apt.

This feature set `PIP_BREAK_SYSTEM_PACKAGES=1` when installing Python packages.

## References

- [rig](https://github.com/r-lib/rig)
Expand Down
2 changes: 1 addition & 1 deletion src/r-rig/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "R (via rig)",
"id": "r-rig",
"version": "1.2.2",
"version": "1.2.3",
"description": "Installs R, some R packages, and needed dependencies. Note: May require source code compilation for R packages.",
"documentationURL": "https://github.com/rocker-org/devcontainer-features/tree/main/src/r-rig",
"options": {
Expand Down
1 change: 1 addition & 0 deletions src/r-rig/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ install_pip_packages() {
local packages="$*"
if [ -n "${packages}" ]; then
check_pip
export PIP_BREAK_SYSTEM_PACKAGES=1
# shellcheck disable=SC2086
python3 -m pip install --upgrade --no-cache-dir --no-warn-script-location ${packages}
fi
Expand Down

0 comments on commit 86da85d

Please sign in to comment.