Skip to content

Commit

Permalink
Only load bare deps if env var GAP_BARE_DEPS is set (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Jul 28, 2023
1 parent 8c8b77c commit 3623cee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gap/systemfile.g
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# and such that it is available when user files get read
# via the GAP command line.
deps:= SHALLOW_COPY_OBJ( GAPInfo.Dependencies.NeededOtherPackages );
if IsBound(GAPInfo.KernelInfo.ENVIRONMENT.GAP_BARE_DEPS) then
deps:= [];
fi;
APPEND_LIST_INTR( deps, [ [ "JuliaInterface", ">=0.9.8-DEV" ] ] );
GAPInfo.Dependencies:= MakeImmutable( rec( NeededOtherPackages:= deps ) );

Expand Down
4 changes: 4 additions & 0 deletions src/GAP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ function __init__()
push!(cmdline_options, "-b")
end

if haskey(ENV, "GAP_BARE_DEPS")
push!(cmdline_options, "-A")
end

initialize(cmdline_options)

if !show_banner
Expand Down

0 comments on commit 3623cee

Please sign in to comment.