What I will discuss ● What PyPI is and what that has to do with pip ● Why you would want to make a portable PyPI server ● How to clone PyPI ● How to setup a Raspberry Pi as a PyPI server
PyPI ● PyPI helps you find and install software developed and shared by the Python community. ● Hosts 200k+ packages ● Pip uses PyPI as its default source of packages and their dependencies ● Not to be confused with PyPy ● Package authors use PyPI to distribute their software
pip --help Usage: pip [options] Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies.
● minirepo. Allows you to download a selective clone, e.g download Python3 packages only ● pypiserver --> Creates an index from the downloaded packages ● nginx --> Web server use this as a reverse proxy to pypiserver Clone & Serve up PyPI content