Skip to content

Instantly share code, notes, and snippets.

@jezdez
Created March 10, 2010 14:57
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save jezdez/327941 to your computer and use it in GitHub Desktop.
Save jezdez/327941 to your computer and use it in GitHub Desktop.
My ~/.pip/pip.conf. More information here: http://pip.openplans.org/configuration.html
[global]
default-timeout = 60
respect-virtualenv = true
download-cache = ~/.pip/cache
log-file = ~/.pip/pip.log
build = ~/.pip/build
[install]
use-mirrors = true
@peterlauri
Copy link

When using the pip.conf file and building some stuff with sudo (ubuntu) it created a directory ~/.pip/build in the current directory, so /home/myusername/somesvndir/.pip/build and owned as root. Is there a bug in the pip and handling of ~/.pip/build. The log-file and download-cache works fine, they end up in /home/myusername/.pip/cache and pip.log.

@christabor
Copy link

Hia, thanks for this. FYI, "use-mirrors" and "build" are deprecated, recommended alternative for the former is to explicitly supply an internal url, e.g. index-url = 'myinternal.pypi.site'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment