Last active
February 24, 2016 21:24
-
-
Save clbarnes/6ee8d8cc3caf0f72b34e to your computer and use it in GitHub Desktop.
Uninstall and reinstall ProbLog's binaries from a particular conda environment
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
#!/bin/bash | |
set -e | |
STARTING_ENV="$CONDA_DEFAULT_ENV" | |
if test -z "$1" ; then | |
TARGET_ENV="$1" | |
source activate TARGET_ENV | |
else | |
TARGET_ENV="$STARTING_ENV" | |
fi | |
rm -r "~/anaconda3/envs/$TARGET_ENV/lib/python3.5/site-packages/problog/lib/python3/" | |
problog install | |
if test -z "$STARTING_ENV"; then | |
source deactivate | |
else | |
source activate "$STARTING_ENV" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment