Skip to content

Commit 94bcae8

Browse files
committed
Fix pin
1 parent 5cc2195 commit 94bcae8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dev/conda/conda-install.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ source $DEV_CONDA/$CONDA_PLATFORM/deps.sh
9898
PV=""
9999
if [[ $CONDA_PLATFORM == "osx-arm64" ]] {
100100
SOLVER=( --solver classic )
101-
if [[ $( python -V ) =~ 3.12 ]] PV="==3.12"
101+
# Pin Python version for these versions:
102+
PV=$( python -V )
103+
foreach V ( 3.11 3.12 ) \
104+
if [[ $PV =~ $V ]] PV_PIN="==$V"
105+
end
102106
}
103107

104108
# Build dependency list:
@@ -112,7 +116,7 @@ LIST+=(
112116
mpich-mpicc
113117
openjdk
114118
# May need to pin version:
115-
"python$PV"
119+
"python$PV_PIN"
116120
swig
117121
)
118122

0 commit comments

Comments
 (0)