Search code examples
pythondjangopiptravis-ci

What is pip install -q -e . for in this Travis-CI build tutorial?


I'm following this tutorial for testing a Django project with Travis-CI. In this example script:

env:
  - DJANGO=1.2.7
  - DJANGO=1.3.1
  - DJANGO=1.4
install:
  - pip install -q Django==$DJANGO --use-mirrors
  - pip install -q -e . --use-mirrors

What exactly does pip install -q -e . perform? There is no -q flag and I'm not sure what the meaning of this is for -e is in the pip documentation:

[-e flag]: Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url.


Solution

  • -q means quiet (to control the console log level).

    -e is for you install a local directory as a package. Suppose you check out flask to ~/flask, then pip install -e ~/flask will symlink your ~/flask to your site-packages directory.