Skip to content

Commit 71244d4

Browse files
authored
Update install-desc-python.sh
1 parent 63c3c7d commit 71244d4

1 file changed

Lines changed: 4 additions & 18 deletions

File tree

conda/install-desc-python.sh

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,24 @@ fi
1616
# Set up environment if running at NERSC
1717
if [ "$NERSC_HOST" ]
1818
then
19-
if [ "$NERSC_HOST" == "cori" ]
20-
then
21-
module unload python
22-
module swap PrgEnv-intel PrgEnv-gnu
23-
module unload cray-libsci
24-
module unload cray-mpich
25-
module load cray-mpich-abi/7.7.19
26-
export LD_LIBRARY_PATH=$CRAY_MPICH_BASEDIR/mpich-gnu-abi/8.2/lib:$LD_LIBRARY_PATH
27-
else
28-
module unload cray-libsci
29-
module load cray-mpich-abi/8.1.15
30-
fi
19+
module unload cray-libsci
20+
module load cray-mpich-abi/8.1.28
3121
module list
3222
fi
3323

3424

3525
unset PYTHONPATH
3626

37-
#curl -LO https://repo.anaconda.com/miniconda/Miniconda3-py38_4.9.2-Linux-x86_64.sh
38-
#bash ./Miniconda3-py38_4.9.2-Linux-x86_64.sh -b -p $1
39-
4027
# Try Mambaforge latest
4128
url="https://github.com/conda-forge/miniforge/releases/latest/download"
4229
url="$url/Mambaforge-Linux-x86_64.sh"
4330
curl -LO "$url"
4431

4532
bash ./Mambaforge-Linux-x86_64.sh -b -p $1
4633
which python
47-
source $1/etc/profile.d/conda.sh
48-
conda activate base
34+
source $1/bin/activate
4935
#conda install -c conda-forge -y mamba
50-
mamba install -c conda-forge -y mpich=3.4.*=external_*
36+
mamba install -c conda-forge -y mpich=4.0.3=external_*
5137
which python
5238
which conda
5339

0 commit comments

Comments
 (0)