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

Commit

Permalink
build/bin/sage-guess-package-system: Ignore conda if no environment i…
Browse files Browse the repository at this point in the history
…s active
  • Loading branch information
Matthias Koeppe committed Apr 24, 2020
1 parent 249fc90 commit 27f6bac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build/bin/sage-guess-package-system
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
#
# First test for user-installable package systems, then system package systems
if conda --version > /dev/null 2>&1; then
echo conda
elif brew --version > /dev/null 2>&1; then
if [ -z "$CONDA_DEFAULT_ENV" ]; then
echo >&2 -n "(ignoring conda because no environment is active) "
else
echo conda
exit
fi
fi
if brew --version > /dev/null 2>&1; then
echo homebrew
elif emerge --version > /dev/null 2>&1; then
echo gentoo
Expand Down

0 comments on commit 27f6bac

Please sign in to comment.