Skip to content

Resolve sometimes too eager to download package metadata and trigger updates #209

Closed
@amilsted

Description

@amilsted

It seems to be typical for juliacall and PythonCall/CondaPkg to attempt package updates every time they are loaded by default. For example, loading juliacall seems to always attempt to add PythonCall even if it is already present, which can trigger registry and dependency updates.

I know there is an "offline" mode that turns off this behavior by completely turning off package installation/updates completely, but I'm wondering if there could be an option in between.

Basically, if the python and julia packages needed are already correctly installed, I want loading juliacall and PythonCall to work (by default) like a normal import or using statement - e.g. no calls to Pkg.add() from juliacall/juliapkg and no calls to pip install from PythonCall/CondaPkg and no internet connection required.

Only if packages are missing, or we don't have the right versions, do I want to probe conda/julia registries. I'm pretty sure this is possible for juliacall/juliapkg, but less sure about CondaPkg/pip.

This would speed up loading of juliacall in python and julia packages that use PythonCall/CondaPkg whenever required julia/python dependencies are already properly installed without the user having to manually switch to offline mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions