Skip to content

Commit

Permalink
Improve Julia setup script to support stacked depots
Browse files Browse the repository at this point in the history
  • Loading branch information
oschulz committed Oct 10, 2024
1 parent 10d44c8 commit 63248d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion legend_julia_setup.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import Pkg

Pkg.activate() # Activate default environment
# Activate default environment
# Can't use `Pkg.activate()` with stacked depots if first(DEPOT_PATH) doesn't exist:
Pkg.activate(joinpath(first(DEPOT_PATH), "environments", "v$(VERSION.major).$(VERSION.minor)"))
# Will also create he environment if it doesn't exist:
Pkg.instantiate()

if !ispath(joinpath(first(DEPOT_PATH), "registries", "LegendJuliaRegistry"))
Expand Down

0 comments on commit 63248d6

Please sign in to comment.