#!/usr/bin/env julia # --------------------------------------------------------------------------- # One-time setup: point Pkg at the local JuliaMSI engine and instantiate. # # JULIA_MSI_PATH=/path/to/JuliaMSI julia scripts/setup.jl # # By default the sibling `../JuliaMSI` directory (relative to this project) is # used, matching the default layout of the development workspace. # --------------------------------------------------------------------------- using Pkg project_dir = dirname(@__DIR__) default_engine = normpath(joinpath(project_dir, "..", "JuliaMSI")) engine = get(ENV, "JULIA_MSI_PATH", default_engine) if !isfile(joinpath(engine, "Project.toml")) error("JuliaMSI engine not found at $(engine). Set JULIA_MSI_PATH to the JuliaMSI checkout.") end println("Using JuliaMSI engine at: $(abspath(engine))") Pkg.develop(PackageSpec(path=abspath(engine))) Pkg.instantiate() Pkg.precompile() println("Setup complete. Start the server with:") println(" julia --project=$(project_dir) --threads=auto $(joinpath(project_dir, "bin", "run_server.jl"))")