This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use PREFIX instead of CONDA_ENV_PATH because the latter isn't defined…
… when a pkg is installed during creation of a fresh conda env.
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/bin/sh | ||
|
||
mkdir -p $CONDA_ENV_PATH/etc/conda/deactivate.d | ||
mkdir -p $CONDA_ENV_PATH/etc/conda/activate.d | ||
cat <<EOF > $CONDA_ENV_PATH/etc/conda/deactivate.d/openmpi.sh | ||
mkdir -p $PREFIX/etc/conda/deactivate.d | ||
mkdir -p $PREFIX/etc/conda/activate.d | ||
cat <<EOF > $PREFIX/etc/conda/deactivate.d/openmpi.sh | ||
echo unsetting OPAL_PREFIX | ||
export OPAL_PREFIX=$OPAL_PREFIX_OLD | ||
unset OPAL_PREFIX_OLD | ||
EOF | ||
cat <<EOF > $CONDA_ENV_PATH/etc/conda/activate.d/openmpi.sh | ||
cat <<EOF > $PREFIX/etc/conda/activate.d/openmpi.sh | ||
#!/bin/sh | ||
echo setting OPAL_PREFIX to $CONDA_ENV_PATH | ||
echo setting OPAL_PREFIX to $PREFIX | ||
export OPAL_PREFIX_OLD=$OPAL_PREFIX | ||
export OPAL_PREFIX=$CONDA_ENV_PATH | ||
export OPAL_PREFIX=$PREFIX | ||
EOF | ||
|
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,4 +1,4 @@ | ||
#!/bin/sh | ||
|
||
rm -f $CONDA_ENV_PATH/etc/conda/deactivate.d/openmpi.sh | ||
rm -f $CONDA_ENV_PATH/etc/conda/activate.d/openmpi.sh | ||
rm -f $PREFIX/etc/conda/deactivate.d/openmpi.sh | ||
rm -f $PREFIX/etc/conda/activate.d/openmpi.sh |