Skip to content

Commit

Permalink
Makte pointer to dependenca y path explicit.
Browse files Browse the repository at this point in the history
  • Loading branch information
fremling committed Oct 3, 2022
1 parent 23001d9 commit 4d9b985
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/MathLink.jl
Expand Up @@ -6,11 +6,16 @@ export @W_str, @W_cmd, weval


###Checking that the deps.jl file exists. And throwing a readable error if it does not!
if isfile("../deps/deps.jl")
include("../deps/deps.jl")

FilePath=@__DIR__
FilePath=FilePath[1:end-4]*"/deps/deps.jl"


#if isfile("../deps/deps.jl")
#include("../deps/deps.jl")
if isfile(FilePath)
include(FilePath)
else
FilePath=@__DIR__
FilePath=FilePath[1:end-4]*"/deps/deps.jl"
error("The file $FilePath does not exist.\n"
*"This usually means that the MathLink installation failed.\n"
*"Have you checked that Mathematica is installed on your system?")
Expand Down
3 changes: 2 additions & 1 deletion src/init.jl
Expand Up @@ -35,7 +35,8 @@ function refcount_dec()
end

function __init__()
if mlib == "" ###when JULIA_REGISTRYCI_AUTOMERGE=true the mlib is an empty string, and we can test for that
if mlib == ""
###when JULIA_REGISTRYCI_AUTOMERGE=true the mlib is an empty string, and we can test for that
# We need to be able to install and load this package without error for
# Julia's registry AutoMerge to work. Skip initialization of the mathlink library.
@info "Pretending fake installation works"
Expand Down

2 comments on commit 4d9b985

@fremling
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/69408

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.1 -m "<description of version>" 4d9b985e5df930072f396dadc11c13fc6d054cd8
git push origin v0.5.1

Please sign in to comment.