Vault7: CIA Hacking Tools Revealed
Navigation: » Latest version
Owner: User #71475
Devlan simple pip index
I have a script running auto-generating a pip-1.5.4.tar.gz compatible index of every package in \\fs-01\share\Python\packages directory. Simply dropping a file in that folder means it should show up within the next 5 minutes in the index.
you can access it at http://10.3.2.212/pypi and use it as follows:
pip install --index-url=http://10.3.2.212/simple/ foopackage
On the low side, you can use the pip2pi package to automatically download python packages and their dependencies from pypi without installing the packages. (use the pip2tgz command from pip2pi)
As of pip version 1.1, you can pass the --download option to download the package and its dependencies without installing.
$ pip install --download=/path/to/download/dir <package name>
You can set this as the default by updating your pip configuration file (~/.pip/pip.conf on *nix, %HOME%\pip\pip.ini on windows) like this:
[global]
index-url = http://10.3.2.212/simple
A simple index is also being created in the "simple" directory in packages. You can install from this index using:
pip install --index-url=file:///path/to/share/Python/packages/simple/ foopackage
Note - the pypi server I'm hosting on 10.3.2.116 is now a better, fuller implementation. I'm still generating the 'simple' index in the packages directory, but your mileage may vary on that one