@@ -8,10 +8,10 @@ set -eu
88# Generates settings.sed for the Swift/T build
99# Many exported environment variables here
1010# are substituted into meta.yaml
11- # This script runs in the PLATFORM subdirectory
11+ # This script runs in the CONDA_PLATFORM subdirectory
1212# and should not change directories
1313# A LOG is produced named platform/conda-build.log
14- # You can only run 1 job concurrently
14+ # You can only run 1 job concurrently per Anaconda installation
1515# because of the log and
1616# because of meta.yaml
1717# The Swift/T source must have already been put in $TMP/distro
@@ -52,14 +52,14 @@ source $DEV_CONDA/get-python-version.sh
5252# Optionally set R_VERSION from user argument:
5353if (( ${# R} )) export R_VERSION=${R[2]}
5454
55- if (( ${# PLATFORM :- } == 0 )) {
56- log " unset: PLATFORM "
55+ if (( ${# CONDA_PLATFORM :- } == 0 )) {
56+ log " unset: CONDA_PLATFORM "
5757 log " This script should be called by a conda-platform.sh"
5858 return 1
5959}
6060
61- log " VERSION: $SWIFT_T_VERSION "
62- log " PLATFORM: $PLATFORM $* "
61+ log " SWIFT/T VERSION: $SWIFT_T_VERSION "
62+ log " CONDA_PLATFORM: $CONDA_PLATFORM $* "
6363
6464# This is passed into meta.yaml:
6565export DISTRO=$TMP /distro
@@ -115,7 +115,7 @@ export USE_ZLIB=0
115115export USE_ZSH=1
116116
117117# Allow platform to modify dependencies
118- source $DEV_CONDA /$PLATFORM /deps.sh
118+ source $DEV_CONDA /$CONDA_PLATFORM /deps.sh
119119
120120export DATE=${(% )DATE_FMT_S}
121121m4 -P -I $DEV_CONDA $COMMON_M4 $META_TEMPLATE > meta.yaml
@@ -134,7 +134,7 @@ if [[ -f $LOG ]] {
134134 print
135135}
136136
137- if (( ENABLE_R )) && [[ $PLATFORM == " osx-arm64" ]] {
137+ if (( ENABLE_R )) && [[ $CONDA_PLATFORM == " osx-arm64" ]] {
138138 # This is just for our emews-rinside:
139139 CHANNEL_SWIFT=( -c swift-t )
140140} else {
0 commit comments