z, ? | toggle help (this) |
space, → | next slide |
shift-space, ← | previous slide |
d | toggle debug mode |
## <ret> | go to slide # |
c, t | table of contents (vi) |
f | toggle footer |
r | reload slides |
n | toggle notes |
p | run preshow |
from django.utils import unittest
--no-site-packages
Django==1.3
South==0.7.3
django-compressor==0.9.2
BeautifulSoup==3.2.0
slimmer==0.1.30
django-floppyforms==0.4.2
django-classy-tags==0.3.0
...
Django==1.2.5
, not Django>=1.2,<1.3
Django==1.3
http://pypi.python.org/simple/
http://pypi.python.org/simple/Django/1.3
http://pypi.python.org/simple/Django/
rel=[homepage,download]
or links that look like PyPI home/download linksDjango-1.3.tar.gz
- "sdists"pip install -vv ...
to debugin ~/.pip/pip.conf
:
[global]
download-cache=/path/to/some/dir
PIP_DOWNLOAD_CACHE=/path/to/some/dir
in ~/.pip/pip.conf
:
[global]
use-mirrors=true
PIP_USE_MIRRORS=true
Some Project
host their own downloads--index-url
--find-links
vendor/
chishop
(or EggBasket
, ClueReleaseManager
, basketweaver
...)setup.py upload
like PyPI--index-url
option with base URL--extra-index-url
if you want PyPI too--index-url http://myindex.example.com/
$ tree
.
|-- Django
| `-- Django-1.3.tar.gz
`-- django-floppyforms
`-- django-floppyforms-0.4.2.tar.gz
setup.py upload
--find-links
can inject arbitrary URLs into the link-scraping--no-index
pip install -d my-sdists-dir/ SomePackage
--find-links http://internal.example.com/sdists/
or
--find-links file:///path/to/my/sdists/
$ tree
.
|-- Django-1.3.tar.gz
`-- django-floppyforms-0.4.2.tar.gz
file://
URL and --no-index
pip install --install-option="--home=`pwd`/vendor/" ...
export PYTHONPATH=`pwd`/vendor/lib/python
vendor/
with the rest of your code$ tree -L 4
.
`-- vendor
|-- bin
| `-- django-admin.py
`-- lib
`-- python
|-- django
|-- Django-1.3-py2.6.egg-info
|-- django_floppyforms-0.4.7-py2.6.egg-info
`-- floppyforms
vendor/
-e git://github.com/carljm/django-model-utils@8c6c1cf8#egg=django-model-utils
setup.py sdist
)pip
is flexible#pip
on Freenode