|
2 | 2 |
|
3 | 3 | module unload python |
4 | 4 | module swap PrgEnv-intel PrgEnv-gnu |
5 | | -module unload craype-network-aries |
6 | 5 | module unload cray-libsci |
7 | | -module unload craype |
8 | 6 | module load cray-mpich-abi/8.1.28 |
9 | 7 |
|
10 | | -export LD_LIBRARY_PATH=$CRAY_MPICH_BASEDIR/mpich-gnu-abi/8.2/lib:$LD_LIBRARY_PATH |
| 8 | +#export LD_LIBRARY_PATH=$CRAY_MPICH_BASEDIR/mpich-gnu-abi/8.2/lib:$LD_LIBRARY_PATH |
11 | 9 |
|
12 | 10 | unset PYTHONPATH |
13 | 11 |
|
| 12 | +setup_conda() { |
| 13 | + source $curBuildDir/py/etc/profile.d/conda.sh |
| 14 | +} |
| 15 | + |
| 16 | +config_cosmosis() { |
| 17 | + source ${CONDA_PREFIX}/bin/cosmosis-configure |
| 18 | +} |
| 19 | + |
14 | 20 | # Set to 1 to install into the common sofware area |
15 | 21 | installFlag=$1 |
16 | 22 |
|
@@ -49,23 +55,33 @@ cd $curBuildDir |
49 | 55 |
|
50 | 56 | # Build Steps |
51 | 57 |
|
| 58 | +export PYTHONNOUSERSITE=1 |
| 59 | +export CONDA_CACHE_DIR=$curBuildDir/conda/pkgs |
| 60 | + |
52 | 61 | # Try Mambaforge latest |
53 | 62 | url="https://github.com/conda-forge/miniforge/releases/latest/download" |
54 | 63 | url="$url/Mambaforge-Linux-x86_64.sh" |
55 | 64 | curl -LO "$url" |
56 | 65 |
|
57 | 66 | bash ./Mambaforge-Linux-x86_64.sh -b -p $curBuildDir/py |
58 | | -source $curBuildDir/py/etc/profile.d/conda.sh |
| 67 | +setup_conda |
59 | 68 | conda activate base |
60 | 69 |
|
61 | | -mamba install -c conda-forge -y mpich=4.0.3=external_* |
62 | | - |
63 | | -#export LD_LIBRARY_PATH=/opt/cray/pe/mpt/7.7.19/gni/mpich-gnu-abi/8.2/lib:$LD_LIBRARY_PATH |
| 70 | +mamba install -c conda-forge -y mpich=4.1.2=external_* |
64 | 71 |
|
65 | 72 |
|
66 | 73 | cd $curBuildDir |
67 | 74 |
|
| 75 | +python -m pip cache purge |
| 76 | + |
68 | 77 | mamba install -c conda-forge -y --file ./conda-pack.txt |
| 78 | + |
| 79 | +#install cosmosis for firecrown |
| 80 | +#export CSL_DIR=${PWD}/cosmosis-standard-library |
| 81 | +#conda env config vars set CSL_DIR=${PWD}/cosmosis-standard-library |
| 82 | +#config_cosmosis |
| 83 | +#cosmosis-build-standard-library |
| 84 | + |
69 | 85 | pip install --no-cache-dir -r ./pip-pack.txt |
70 | 86 |
|
71 | 87 | conda clean -y -a |
|
0 commit comments