Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in build workaround #92

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading