-
-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build/pkgs/conda: New optional package
src/bin/sage-env: Add the conda env to PATH if present build/make/Makefile.in: Try to install script packages without spkg-install using mamba build/make/Makefile.in, src/bin/sage-env: Activate the conda env for installing, remove user conda env vars Switch from mamba-forge to micromamba build/pkgs/conda/SPKG.rst: Update Simplify placement of conda env Update build/pkgs/conda/spkg-install Co-authored-by: Isuru Fernando <isuruf@gmail.com> src/bin/sage-env: Do not override conda env vars here; do that only in build/make/Makefile.in
- Loading branch information
Matthias Koeppe
committed
Dec 8, 2023
1 parent
d7bca05
commit a2da019
Showing
17 changed files
with
118 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
conda: Installs conda-forge packages in an isolated environment | ||
=============================================================== | ||
|
||
Description | ||
----------- | ||
|
||
conda-forge is a community-led collection of recipes, build infrastructure | ||
and distributions for the conda package manager. | ||
|
||
mamba is a fast cross-platform package manager, a compatible | ||
reimplementation of the conda package manager in C++. | ||
|
||
micromamba is a tiny version of the mamba package manager. It is a statically linked | ||
C++ executable with a separate command line interface. It does not need a base | ||
environment and does not come with a default version of Python. | ||
|
||
Installing this script package installs ``micromamba`` in ``$SAGE_LOCAL/bin`` | ||
and creates an isolated conda environment within ``$SAGE_LOCAL/var/lib/sage/conda``. | ||
|
||
|
||
License | ||
------- | ||
|
||
BSD-3-Clause | ||
|
||
|
||
Upstream Contact | ||
---------------- | ||
|
||
https://conda-forge.org/ | ||
|
||
https://github.com/mamba-org/mamba | ||
|
||
https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#! /bin/sh | ||
set -e | ||
|
||
ARCH=$(uname -m) | ||
OS=$(uname) | ||
|
||
# Adapted from micro.mamba.pm/install.sh, removed bashisms | ||
if [ "$OS" = "Linux" ]; then | ||
PLATFORM="linux" | ||
if [ "$ARCH" = "aarch64" ]; then | ||
ARCH="aarch64"; | ||
elif [ "$ARCH" = "ppc64le" ]; then | ||
ARCH="ppc64le"; | ||
else | ||
ARCH="64"; | ||
fi | ||
fi | ||
|
||
if [ "$OS" = "Darwin" ]; then | ||
PLATFORM="osx"; | ||
if [ "$ARCH" = "arm64" ]; then | ||
ARCH="arm64"; | ||
else | ||
ARCH="64" | ||
fi | ||
fi | ||
|
||
set -x | ||
sage-download-file "https://micro.mamba.pm/api/micromamba/$PLATFORM-$ARCH/latest" | tar -xvj -C "$SAGE_LOCAL" bin/micromamba | ||
export MAMBA_ROOT_PREFIX="$SAGE_LOCAL/var/lib/sage/conda" | ||
export CONDARC="$SAGE_ROOT/condarc.yml" | ||
micromamba create --yes --prefix "$MAMBA_ROOT_PREFIX" -c conda-forge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mamba_forge | ||
conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters