Skip to content

Commit

Permalink
Only load bare deps if env var GAP_BARE_DEPS is set
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jul 6, 2023
1 parent 43288a5 commit a53456d
Show file tree
Hide file tree
Showing 2 changed files with 6 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.7" ] ] );
GAPInfo.Dependencies:= MakeImmutable( rec( NeededOtherPackages:= deps ) );

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

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

# The following withenv is needed to get readline input to work right; see also
# https://github.com/JuliaPackaging/Yggdrasil/issues/455 and
Expand Down

0 comments on commit a53456d

Please sign in to comment.