-
Notifications
You must be signed in to change notification settings - Fork 16
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
BUG: if PYTHON_JULIAPKG_PROJECT is set to existing Project, the project get's deleted #15
Comments
Also ran into this, yea the behavior of overwriting is really surprising and undesired. If a PYTHON_JULIAPKG_PROJECT is specified, can it just assume necessary packages are there, and just allow errors if they're not? |
This is not a bug, it's a documented feature. If you want JuliaPkg to leave the project alone, you can set However a missing feature I am aware of is a lack of a "backends" mechanism similar to CondaPkg which allows a finer control over what pre-installed things get used. |
Maybe I'm missing something but its hard to imagine a use-case for removing all packages in an existing Project.toml. Perhaps better would just be an error message saying to set |
The current assumption in JuliaPkg is that it "owns" the project that it uses, and is therefore free to add and remove packages as it requires to satisfy any dependencies. Additionally keeping around pre-installed packages is more difficult to implement. The env var is simply a mechanism to change where that project gets put, in case you want dependencies installed on a different filesystem for example. As I said, a backend which lets you use a pre-installed project without modifying it could be added, but it's not done yet. |
This happens even if you first add Julia packages by seval julia code as Also one question: which are the advantages of adding a Julia package using |
via PythonCall/JuliaCall I came to use JuliaPkg
unfortunately sofar JuliaPkg creates more problems than it solves. I am using PythonCall on mybinder, however the JuliaPkg creates its own empty Project, not using the binder project.
Even worse: If setting PYTHON_JULIAPKG_PROJECT to the directory where the binder Project.toml lies, it overwrites the existing Project.toml file, deleting the previous environment and leaving JuliaPkg empty environment.
The text was updated successfully, but these errors were encountered: