Skip to content

Commit c5ac7aa

Browse files
committed
setup python side of RMS after complete rms install done
1 parent af8f78d commit c5ac7aa

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

install_rms.sh

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,6 @@ export PYTHON_JULIAPKG_PROJECT="$CONDA_PREFIX/julia_env"
116116
echo "Environment variables referencing JULIA:"
117117
env | grep JULIA
118118

119-
# Initialize the Julia environment from Python using juliacall
120-
python << EOF || return 1
121-
import sys
122-
try:
123-
from juliacall import Main
124-
Main.seval('println("Active Julia environment: ", Base.active_project())')
125-
Main.seval('println("Julia load path: ", Base.load_path())')
126-
Main.seval('using Pkg')
127-
Main.seval('Pkg.status()')
128-
except Exception as e:
129-
print("❌ Error while initializing Julia environment:")
130-
print(e)
131-
sys.exit(1)
132-
EOF
133-
134119
# Install RMS
135120
if [ "$RMS_INSTALLER" = "standard" ] || [ "$RMS_INSTALLER" = "continuous" ]; then
136121
echo "Installing RMS from branch: $RMS_BRANCH"
@@ -179,9 +164,23 @@ if [ $julia_status -ne 0 ]; then
179164
return $julia_status
180165
fi
181166

182-
# this makes the above RMS installation available to Python
183167
conda install -y conda-forge::pyjuliacall
184168

169+
# Initialize the Julia environment from Python using juliacall
170+
python << EOF || return 1
171+
import sys
172+
try:
173+
from juliacall import Main
174+
Main.seval('println("Active Julia environment: ", Base.active_project())')
175+
Main.seval('println("Julia load path: ", Base.load_path())')
176+
Main.seval('using Pkg')
177+
Main.seval('Pkg.status()')
178+
except Exception as e:
179+
print("❌ Error while initializing Julia environment:")
180+
print(e)
181+
sys.exit(1)
182+
EOF
183+
185184
echo "Checking if ReactionMechanismSimulator is installed in the current conda environment for Python usage..."
186185

187186
python << EOF

0 commit comments

Comments
 (0)