anchor.diff:      |  #[a(href="#source-ubuntu") Ubuntu], #[a(href="#source-osx") OS X] and
       |  #[a(href="#source-windows") Windows] for details.
   
  ++code(false, "bash").
  +    # make sure you are using recent pip/virtualenv versions
  +    python -m pip install -U pip virtualenv
  +    git clone #{gh("spaCy")}
  +    cd spaCy
  +
  +    virtualenv .env
  +    source .env/bin/activate
  +    pip install -r requirements.txt
  +    pip install -e .
  +
  +p
  +    |  Compared to regular install via pip, #[+a(gh("spaCy", "requirements.txt")) requirements.txt]
  +    |  additionally installs developer dependencies such as Cython.
  +
  +p
  +    |  Instead of the above verbose commands, you can also use the following
  +    |  #[+a("http://www.fabfile.org/") Fabric] commands:
  +
  ++table(["Command", "Description"])
  +    +row
  +        +cell #[code fab env]
  +        +cell Create #[code virtualenv] and delete previous one, if it exists.
  +
  +    +row
  +        +cell #[code fab make]
  +        +cell Compile the source.
  +
  +    +row
  +        +cell #[code fab clean]
  +        +cell Remove compiled objects including the generated C++.
  +
  +    +row
  +        +cell #[code fab test]
  +        +cell Run basic tests, aborting after first failure.
  +
  +p
  +    |  All commands assume that your #[code virtualenv] is located in a
  +    |  directory #[code .env]. If you're using a different directory, you can
  +    |  change it via environment the variable #[code VENV_DIR], for example:
  +
  ++code(false, "bash").
  +    VENV_DIR=".custom-env" fab clean make
  +
   +h(3, "source-ubuntu") Ubuntu
   
   p Install system-level dependencies via #[code apt-get]:
  
positive.code: p
      |  spaCy is compatible with #[strong 64-bit CPython 2.6+&#8725;3.3+] and
      |  runs on #[strong Unix/Linux], #[strong macOS/OS X] and
      |  #[strong Windows]. The latest spaCy releases are currently only
      |  available as source packages over
      |  #[+a("https://pypi.python.org/pypi/spacy") pip]. Installation requires a
      |  working build environment. See notes on
      |  #[a(href="#source-ubuntu") Ubuntu], #[a(href="#source-osx") macOS/OS X]
      |  and #[a(href="#source-windows") Windows] for details.
  
  +code(false, "bash").
      pip install -U spacy
  
  p
      |  After installation you need to download a language model. Models for
  
negative.code: p
      |  Install a recent version of #[+a("https://developer.apple.com/xcode/") XCode],
      |  including the so-called "Command Line Tools". macOS and OS X ship with
      |  Python and git preinstalled. To compile spaCy with multi-threading support
      |  on macOS / OS X, #[+a("https://github.com/explosion/spaCy/issues/267") see here].
  
  +h(3, "source-windows") Windows
  
  