import InteractiveUtils
InteractiveUtils.versioninfo(; verbose = true)

pkgall = ["IJulia", "Pluto", "PlutoUI"]
push!(pkgall, "Plots", "JuMP", "GLPK", "SCIP")
push!(pkgall, "CSV", "JSON", "XLSX", "SQLite", "DataFrames")
push!(pkgall, "LightGraphs", "GraphPlot")
push!(pkgall, "BenchmarkTools", "JuliaFormatter", "PackageCompiler")

haskey(ENV, "CPLEX_STUDIO_BINARIES") == false && (ENV["CPLEX_STUDIO_BINARIES"] = "/usr/local/lib")
Sys.ARCH == :x86_64 && push!(pkgall, "CPLEX")

haskey(ENV, "GUROBI_HOME") == false && (ENV["GUROBI_HOME"] = "/usr/local")
Sys.ARCH == :x86_64 && push!(pkgall, "Gurobi")

import Pkg
Pkg.add(pkgall)

import IJulia
IJulia.installkernel("Julia", "--threads=auto", "--sysimage=/usr/local/lib/SuperJulia.sys")

import PackageCompiler
PackageCompiler.create_sysimage(Symbol.(pkgall), sysimage_path = "/usr/local/lib/SuperJulia.sys")
