Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[r-apt][r-rig] set PIP_BREAK_SYSTEM_PACKAGES=1 when installing pip packages #164

Merged
merged 3 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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