Skip to content

Commit

Permalink
Merge branch 'apptainer'
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Nov 1, 2023
2 parents 89de55a + 6f6a053 commit 29ff1bd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
21 changes: 21 additions & 0 deletions cando-apptainer-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

mkdir -p "$HOME/.local/bin" # TODO Check to see if it is in the path

if [ ! -f "$HOME/quicklisp/setup.lisp" ]; then
echo "Installing Quicklisp..."
tmpfile=$(mktemp)
curl -fsLo $tmpfile https://beta.quicklisp.org/quicklisp.lisp
clasp --non-interactive --load $tmpfile --eval "(quicklisp-quickstart:install)" --eval "(ql-util:without-prompting (ql:add-to-init-file))"
rm $tmpfile
elif [ ! -f "$HOME/.clasprc" ]; then
echo "Creating clasprc..."
clasp --non-interactive --load $HOME/quicklisp/setup.lisp --eval "(ql-util:without-prompting (ql:add-to-init-file))"
fi

echo "Updating Quicklisp..."
clasp --non-interactive --eval "(unless (ql-dist:find-dist \"quickclasp\") (ql-dist:install-dist \"http://thirdlaw.tech/quickclasp/quickclasp.txt\" :prompt nil))" \
--eval "(ql:update-all-dists :prompt nil)"

echo "Installing CANDO user features..."
cando --eval "(ql:quickload :cando-jupyter)" --eval "(cando-jupyter:install :implementation \"apptainer\")" --eval "(sys:quit)"
4 changes: 3 additions & 1 deletion cscript.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

(k:systems :cando-user)

(k:sources :install-bin #~"cando-user-install")
(k:sources :install-bin
#~"cando-user-install"
#~"cando-apptainer-install")

0 comments on commit 29ff1bd

Please sign in to comment.