Skip to content

Commit

Permalink
Merge pull request #92 from JuliaInterop/fremling-patch-2
Browse files Browse the repository at this point in the history
Fix bug in build workaround
  • Loading branch information
fremling authored Mar 10, 2024
2 parents f1f10f7 + 0b308c7 commit 5f6c5d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,21 @@ function find_lib_ker()
error("Could not find Mathematica or Wolfram Engine installation.\nPlease set the `JULIA_MATHLINK` and `JULIA_MATHKERNEL` variables.")
end

@info "The JULIA_PKG_SERVER_REGISTRY_PREFERENCE variable"
@info get(ENV, "JULIA_PKG_SERVER_REGISTRY_PREFERENCE", "false")

if get(ENV, "JULIA_REGISTRYCI_AUTOMERGE", "false") == "true"
# We need to be able to install and load this package without error for
# Julia's registry AutoMerge to work. Just write a fake Mathematica path.
mlib = ""
mker = "WolframKernel"
@info "Pretending fake installation exists" mlib mker
elseif get(ENV, "ULIA_PKG_SERVER_REGISTRY_PREFERENCE", "false") != "false"
elseif get(ENV, "JULIA_PKG_SERVER_REGISTRY_PREFERENCE", "false") != "false"
# We need to be able to install and load this package without error for
# Githubs CI checker to work. Just write a fake Mathematica path.
mlib = ""
mker = "WolframKernel"
@info "Pretending fake installation exists" mlib mker
@info "Pretending fake Github CI installation exists" mlib mker
else
mlib,mker = find_lib_ker()
@info "Installation found" mlib mker
Expand Down

0 comments on commit 5f6c5d0

Please sign in to comment.