Skip to content

Commit

Permalink
MAINT: switch dev to use latest tag as a base instead of old dev env,…
Browse files Browse the repository at this point in the history
… store latest tag in config file
  • Loading branch information
ZLLentz committed Nov 1, 2022
1 parent 654dffd commit 6172f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/dev_conda
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ source "${BASE_ENV}/etc/profile.d/conda.sh"

# Activate base env first so things like conda build are available
conda activate
# Default to dev pcds release
conda activate dev
# Default to latest pcds release as the base
conda activate "$(cat "${BASE_ENV}/latest_env")"

PCDSDEVICES_DEV_UI="${APPS_ROOT}/dev/pcdsdevices/pcdsdevices/ui"

Expand Down
4 changes: 1 addition & 3 deletions scripts/pcds_conda
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ if [[ -z "${PCDS_CONDA_VER}" ]]; then
# If env var unset, then default to latest
BASE_ENV="${CONDA_ROOT}/py39"
PYTHON_VER="3.9"
PCDS_CONDA_VER="$(command ls "${BASE_ENV}/envs" | command grep pcds- | command tail -1)"
SERIES="pcds"
VER_NUM="$(echo "${PCDS_CONDA_VER}" | cut -d - -f 2)"
PCDS_CONDA_VER="$(cat "${BASE_ENV}/latest_env")"
else
# Figure out which base to use
if [[ -z "${PCDS_CONDA_VER##*-*}" ]]; then
Expand Down

0 comments on commit 6172f36

Please sign in to comment.