Skip to content

Instantly share code, notes, and snippets.

View aschmu's full-sized avatar

Achille M. aschmu

View GitHub Profile
@aschmu
aschmu / pypi-mirror.md
Last active April 10, 2024 20:53
Setting up a PyPi mirror

I) Introduction

Taken from: [https://groups.google.com/forum/#!topic/devpi-dev/S-3ioWILTiY]).

We wanted to do some python developpement but we had a problem : our working network is completely isolated from any internet access, only having servers providing services like distribution packages repository mirror and web servers. The question then was how to make a full pypi mirror for usig pip install and pip search.

This is possible to be done using devpi, a web server, bandersnatch and an external hard drive. The idea is to dump all pypi packages with bandersnatch, transfer them to the server with the hard drive,