Support/Developer Tips: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with 'Here are a few tips and tricks we've accumulated while working on the new platform. Hopefully these are helpful to new developers or other contributors who wa…')
 
m (→‎Download Cache: .zsh -> .zshrc)
Line 12: Line 12:
  export PIP_DOWNLOAD_CACHE=~/.pip-cache
  export PIP_DOWNLOAD_CACHE=~/.pip-cache


You probably want to put the second line into your <code>.bashrc</code> (or <code>.zsh</code>) file as well, so it's automatically exported when you open the terminal.
You probably want to put the second line into your <code>.bashrc</code> (or <code>.zshrc</code>) file as well, so it's automatically exported when you open the terminal.

Revision as of 20:42, 18 June 2010

Here are a few tips and tricks we've accumulated while working on the new platform. Hopefully these are helpful to new developers or other contributors who want to get Kitsune up and running to hack on it.

pip

pip is a package manager for Python that is an improvement over easy_install. It works well with virtualenv, which we also use. (In fact, virtualenv installs pip for you.)

Download Cache

A download cache can make pip install go much faster. There are just two steps to start using a download cache:

mkdir ~/.pip-cache
export PIP_DOWNLOAD_CACHE=~/.pip-cache

You probably want to put the second line into your .bashrc (or .zshrc) file as well, so it's automatically exported when you open the terminal.