Avoid using standard import in JLL for cases like JULIA_LOAD_PATH=@ julia1.6 -e "using OpenSpecFun_jll"
#1007
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In Julia 1.6, I'm seeing that
OpenSpecFun_jll
is not importable with "strict" environments likeJULIA_LOAD_PATH=@
whenCompilerSupportLibraries_jll
does not exist in toplevelProject.toml
#1009IIUC, this is because the jll scripts that have
using $Dependency
are simplyinclude
ed at run-time https://github.com/JuliaPackaging/JLLWrappers.jl/blob/1631db3e80c9d36d257adc222e766a22a73df8d1/src/toplevel_generators.jl#L170. It'd fail if$Dependency
is not indeps
of currently active project.I implemented a simple workaround that uses
require
instead ofusing
as inI'm happy to close the PR if there is a better solution.
close #1009