Skip to content

Commit 0041ec1

Browse files
committed
Update sysimage script
1 parent ebd3b17 commit 0041ec1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

bin/create_sys_image

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,29 @@ julia --startup-file=no -e "using Pkg; Pkg.add(\"TestEnv\")"
7373

7474
if [[ $update == true ]]; then
7575
echo "Updating packages..."
76+
export JULIA_PKG_SERVER_REGISTRY_PREFERENCE="eager"
7677
if test -f "Manifest.toml"; then
7778
mv Manifest.toml Manifest.toml.bak
7879
fi
80+
if [[ $julia_major == "1.10" ]]; then
81+
if test -f "Manifest-v1.10.toml"; then
82+
mv Manifest-v1.10.toml Manifest-v1.10.toml.bak
83+
fi
84+
else
85+
if test -f "Manifest-v1.11.toml"; then
86+
mv Manifest-v1.11.toml Manifest-v1.11.toml.bak
87+
fi
88+
fi
7989
julia --startup-file=no --pkgimages=no --project -e "using TestEnv; TestEnv.activate(); using Pkg; Pkg.add(\"PyCall\"); Pkg.build(\"PyCall\")"
8090
if [[ $PYTHON == "" ]]; then
8191
julia --startup-file=no --pkgimages=no --project -e "using TestEnv; TestEnv.activate(); using Pkg; Pkg.add(\"Conda\"); using Conda; Conda.add(\"matplotlib\"); using ControlPlots"
8292
fi
8393
julia --startup-file=no --pkgimages=no --project -e "using Pkg; Pkg.update()"
94+
if [[ $julia_major == "1.10" ]]; then
95+
mv Manifest.toml Manifest-v1.10.toml
96+
else
97+
mv Manifest.toml Manifest-v1.11.toml
98+
fi
8499
else
85100
if [[ $julia_major == "1.10" ]]; then
86101
cp Manifest-v1.10.toml.default Manifest-v1.10.toml

0 commit comments

Comments
 (0)