Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 898758d

Browse files
author
Matthias Koeppe
committed
tox.ini: Add local-root
1 parent 93f5e32 commit 898758d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,11 @@ commands =
403403
local-conda: bash -c '{env:SETENV} && {env:CONDA_PREFIX}/bin/conda update -n base --yes conda'
404404
local-conda: bash -c 'PACKAGES=$(build/bin/sage-get-system-packages conda $(PATH=build/bin:$PATH build/bin/sage-package list {env:SAGE_PACKAGE_LIST_ARGS}) _bootstrap); {env:SETENV} && {env:CONDA_PREFIX}/bin/conda install --yes --quiet $PACKAGES'
405405
#
406+
# local-root: Assume we are root, run the system package commands
406407
# local-sudo: Use sudo to run the system package commands as root
407408
#
408-
local-sudo: bash -c '$(build/bin/sage-print-system-package-command {env:SYSTEM} update) #'
409-
local-sudo: bash -c 'PACKAGES=$(build/bin/sage-get-system-packages {env:SYSTEM} $(PATH=build/bin:$PATH build/bin/sage-package list {env:SAGE_PACKAGE_LIST_ARGS}) _bootstrap); $(build/bin/sage-print-system-package-command {env:SYSTEM} {env:__SUDO:} --yes --no-install-recommends install $PACKAGES) || [ "$IGNORE_MISSING_SYSTEM_PACKAGES" = yes ] && echo "(ignoring errors)" '
409+
local-{root,sudo}: bash -c '$(build/bin/sage-print-system-package-command {env:SYSTEM} update) #'
410+
local-{root,sudo}: bash -c 'PACKAGES=$(build/bin/sage-get-system-packages {env:SYSTEM} $(PATH=build/bin:$PATH build/bin/sage-package list {env:SAGE_PACKAGE_LIST_ARGS}) _bootstrap); $(build/bin/sage-print-system-package-command {env:SYSTEM} {env:__SUDO:} --yes --no-install-recommends install $PACKAGES) || [ "$IGNORE_MISSING_SYSTEM_PACKAGES" = yes ] && echo "(ignoring errors)" '
410411
#
411412
# All "local" environments
412413
#

0 commit comments

Comments
 (0)