-
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
How to use separate cache in Julia 0.7? #173
Comments
Also cc @KristofferC |
@stevengj I wrote this before reading your comment #172 (comment). Now that I understand it is only for switching between Python 2 and 3, I don't feel like this is a major issue anymore. Many users won't be using Python 2 anyway (hopefully). I'm closing it now. (But please reopen it if you think it is still a major issue.) |
Oops. I was wrong. Separated compilation cache is required even for supporting just one Python interpreter. Reopening it... e.g., in Linux when statically linked: Line 335 in e617ad9
|
While writing #172, I realized that it won't work in Julia 0.7 since the cache directory structure is completely different. In Julia 0.7 it's
~/.julia/compiled/v0.7/{package name}/{slug}.ji
and this is the code that locates the path:--- https://github.com/JuliaLang/julia/blob/7a8459972e28fa1adf01a9c6d8d1227ec05a09d8/base/loading.jl#L594-L608
In principle, I guess we can do a similar trick we do with
Base.LOAD_CACHE_PATH
in 0.6 withBase.DEPOT_PATH
in 0.7. But creating a depot for each Python version sounds like a overkill since it has more than a cache directory. Here is how they describeBase.DEPOT_PATH
:So, what is the best way to support multiple Python interpreters in Julia 0.7?
The text was updated successfully, but these errors were encountered: