You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Background

Julia's package manager

There are a module from stdlib named Pkg, served as the package manager in Julia, like Python's `pip`.

The package registry and package source

The package manager will download the desired packages from a default registry.
In Python, pip will conduct two actions before installing packags:
       (1) Search the metadata (like pkg name, version, ...etc)
           from the CheeseShop (a.k.a PyPI) for users.
       (2) Fetch them from the CheeseShop if matched.

In Julia, there is a default registry to hold the packages metadata,  hosted on GitHub: https://github.com/JuliaRegistries/General


And where to fetch the package? The aren't a center for download packages.
It's unlike Python's idea, we don't upload package to a center server in case of Julia.
The package manager will fetch stuffs from the URL listed in the metadata.
It should be a valid git URL for git-clone . e.g. For the package Distributions :  https://github.com/JuliaRegistries/General/tree/master/D/Distributions    Most of the packages use GitHub for hosting code.

  • No labels