Skip to content

Commit

Permalink
Revert bokeh to 3.2.2. Ensure global package cache is not writable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Roberts committed Nov 28, 2023
1 parent f2c8f4a commit 8b7179f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies:
- windspharm
- python-cdo
- arm_pyart
- bokeh!=3.0.*,>=2.4.2 ### Dask needs bokeh!=3.0.*,>=2.4.2 for the dashboard.
- bokeh<3.3.0 ### Dask needs bokeh!=3.0.*,>=2.4.2 for the dashboard.
- datashader
- f90nml
- wrf-python
Expand Down
9 changes: 9 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ unset CONDA_PKGS_DIRS

conda info

### Before we start - make sure we're not going to write into the pkgs directory in the analysis3 env
read a b c pkg_cache < <( $MAMBA info | grep 'package cache' )
if [[ "${pkg_cache}" =~ $( realpath ${MAMBA//bin\/mamba} ) ]]; then
mkdir -p "${pkg_cache}" || true
if [[ $( stat -c%u "${pkg_cache}" ) == "${EUID}" ]]; then
chmod -w "${pkg_cache}"
fi
fi

# Check this is not a 'stable' enviornment
if [[ $( get_aliased_module conda/analysis ) == "conda/${FULLENV}" ]]; then
echo "${FULLENV} is a 'stable' environment, aborting" 1>&2
Expand Down

0 comments on commit 8b7179f

Please sign in to comment.