Repository navigation
Force Julia to only use pyjulia cache path - #93
Closed
ExpandingMan wants to merge 2 commits into
Closed
ExpandingMan wants to merge 2 commits into
ExpandingMan wants to merge 2 commits into
Conversation
Contributor
|
Author
|
Ah! That would make sense! Somehow I missed that. Changes incoming. |
Author
|
I don't think the apple error has anything to do with my change. It looks like this package fails no matter what on the nightlies. I'm guessing the best thing to do at this point is to get this package working on v0.6 before trying to merge any PR's. I'll start working with v0.6 as soon as they tag a real beta, and then I'll try getting this working. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This forces
Base.LOAD_CACHE_PATHto only point to the directory with binaries specific to pyjulia and fixes #92. This solution is certainly not ideal because it forces recompilation of absolutely everything, but previously many (if not most) users would experience a segfault when they start pyjulia for the first time.A permanent solution would be either Julia adding functionality to set the cache path for individual modules, or pyjulia making changes to
Base.LOAD_CACHE_PATHevery time it loads a module. It seems to me that the best way to implement the latter solution would be to add a special macro to PyCall which pyjulia would use instead ofusing.The reason for the very strange line 345 is because Julia does not allow you to assign variables in other modules, and I wasn't able to find a single Julia function for emptying an array. If somebody knows of one I will of course change it.
Note that this does not fix #89, which I really don't understand.