4 ms·
Pip does not need a package to be public in order to install it at all, I’ve installed plenty of packages from tarballs and directories just fine. From the docs
by mroche 6y ago
Pip does not need a package to be public in order to install it at all, I’ve installed plenty of packages from tarballs and directories just fine. From the docs[0]
Install packages from:
- PyPI (and other indexes) using requirement specifiers.
- VCS project urls.
- Local project directories.
- Local or remote source archives.
Although I’m not quite sure how you’re using “for public use” in that sentence.
[0] https://pip.pypa.io/en/stable/reference/pip_install/#id19 https://pip.pypa.io/en/stable/reference/pip_install/#id19
- DangitBobby 6y agoI meant to say private use, not public use. But if I want to install from pip over the internet, which is my most common use case it needs to be publicly accessible, right? Which for me means GitHub, bitbucket, pypi, or some other bespoke solution just to avoid "publishing" something for my own private use. Or do I misunderstand?
- lionyo 6y agoYou can publish to a local instance of PyPi https://www.linode.com/docs/applications/project-management/how-to-create-a-private-python-package-repository/ https://www.linode.com/docs/applications/project-management/...
- DangitBobby 6y agoI could do lots of things that would be unnecessarily burdensome for the dubious benefit of having my package unpublished. If it's acceptable to install it on a local network I can just do it directly from a normal filesystem.
- JimDabell 6y agoGitHub and Bitbucket have private repositories and you can install from those using pip. There's nothing forcing you to make something public.
- DangitBobby 6y agoI know about private repos. The hangup was installing from them. Last time I looked up how to have private python packages the the impression I got was "It's not possible." But now with a single Google search I see that it's very much possible (by using ssh). Not sure what changed other than two years have gone by.