-
Notifications
You must be signed in to change notification settings - Fork 101
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
Idea: use PackageCompiler.jl to avoid the precompilation cache nightmare? #217
Comments
@lucatrv, any ideas? |
I looked at PackageCompiler a bit. I think creating the system image for "Python-mode" is possible if there is an option to pass Actually, I think more problematic part is (still) the precompilation cache management on the Julia side because the precompilation cache does not change even if you use different system image: cache_file_entry(pkg::PkgId) = joinpath(
"compiled",
"v$(VERSION.major).$(VERSION.minor)",
pkg.uuid === nothing ? "$(pkg.name).ji" : joinpath(pkg.name, "$(package_slug(pkg.uuid)).ji")
)
function find_all_in_cache_path(pkg::PkgId)
paths = String[]
entry = cache_file_entry(pkg)
for depot in DEPOT_PATH
path = joinpath(depot, entry)
isfile_casesensitive(path) && push!(paths, path)
end
return paths
end The function |
I've never attempted this... and sorry I would not have time to work on it now... but of course feel free to submit a PR, if you ask my opinion yes this would be useful! |
Also have a look at PR #26 which was attempted time ago but never completed. |
@lucatrv Thanks for the comments. Re: Python C extension, I commented here: JuliaLang/PackageCompiler.jl#25 (comment) I guess I'll not be doing the PR for |
Though we probably still need
fake-julia
for the compilation step.The text was updated successfully, but these errors were encountered: