Ativar repositório pypi local

# easy_install 
cat > ~/.pydistutils.cfg << eof
# $HOME/.pydistutils.cfg:
[easy_install]
index_url = http://localhost:3141/root/pypi/+simple/
eof

$ easy_install pandas

# pip
$ mkdir ~/.pip
$ cat ~/.pip/pip.conf << eof
# $HOME/.pip/pip.conf
[global]
index-url = http://localhost:3141/root/pypi/+simple/
# diretiva necessária para pip search
[search]
index = http://localhost:3141/root/pypi/
eof

$ pip install pandas
# Ambientes com buildout
$ cat > ~/.buildout/default.cfg<< eof
[buildout]
index = http://localhost:3141/root/pypi/+simple/
eof
devpi use --always-set-cfg=yes;
devpi-server --serverdir=~/.devpi-server --stop;
devpi-server --serverdir=~/.devpi-server --start;
devpi use http://localhost:3141/root/pypi/+simple/

Comentários