<commit_before>Windows Installation Instructions
=================================

Prerequisites
#############

First download and install the prerequisites:
   * `Python 3.5 <http://www.python.org/>`_  -- 32 and/or 64 bit version
   * `Pismo File Mount Audit Package <http://www.pismotechnic.com/download/>`_
     -- only if you want to use the advanced virtual filesystem features

Installation
############

Simply run the VapourSynth installer. It should automatically detect everything.

Test it by opening a Python command line (should be added to your start menu)
and type this::

   import vapoursynth as vs
   c = vs.get_core()
   print(c.version())

After typing the final line you should see the version printed along with a
few other lines describing the options used when instantiating the Core object.
If this for some reason fails, there may be a bug in the installer or there are
old copies of vapoursynth.pyd and vapoursynth.dll lying around.

Windows Portable Instructions
=============================

First download and decompress the prerequisites:
   * `Python 3.5 <http://www.python.org/>`_  -- 32 or 64 bit embeddable version
   
Simply decompress the portable VapourSynth archive into the Python dir and
overwrite all existing files. Done.

You can also use the VapourSynth Editor by decompressing it into the same directory.

OS X Installation from Packages 
===============================

First download and install the prerequisites:
   * Xcode -- Available from the AppStore
   * `Homebrew <http://brew.sh/>`_ -- A package manager
   
Simply run these commands in a terminal and wait for them to complete::

   brew install vapoursynth

Linux Installation from Packages 
================================

Several distributions have packages:

   * `Ubuntu <https://launchpad.net/~djcj/+archive/ubuntu/vapoursynth>`_  -- PPA
   * `Gentoo <https://github.com/4re/vapoursynth-portage>`_  -- Portage overlay and instructions
   * `Arch Linux <https://www.archlinux.org/packages/?q=vapoursynth>`_  -- Packages

Linux and OS X Compilation Instructions
=======================================

These are the requirements:
   * Autoconf, Automake, and Libtool, probably recent versions

   * GCC 4.8 or newer, or Clang

   * Yasm

   * `Zimg v2 <https://github.com/sekrit-twc/zimg/releases>`_

   * Python 3

   * Cython installed in your Python 3 environment

   * Sphinx for the documentation (optional)

   * libass and ffmpeg for the Subtext plugin (optional)

   * ImageMagick 6.9.?.? for the Imwri plugin (optional)
<commit_msg>doc: List pkg-config among the requirements<commit_after>Windows Installation Instructions
=================================

Prerequisites
#############

First download and install the prerequisites:
   * `Python 3.5 <http://www.python.org/>`_  -- 32 and/or 64 bit version
   * `Pismo File Mount Audit Package <http://www.pismotechnic.com/download/>`_
     -- only if you want to use the advanced virtual filesystem features

Installation
############

Simply run the VapourSynth installer. It should automatically detect everything.

Test it by opening a Python command line (should be added to your start menu)
and type this::

   import vapoursynth as vs
   c = vs.get_core()
   print(c.version())

After typing the final line you should see the version printed along with a
few other lines describing the options used when instantiating the Core object.
If this for some reason fails, there may be a bug in the installer or there are
old copies of vapoursynth.pyd and vapoursynth.dll lying around.

Windows Portable Instructions
=============================

First download and decompress the prerequisites:
   * `Python 3.5 <http://www.python.org/>`_  -- 32 or 64 bit embeddable version
   
Simply decompress the portable VapourSynth archive into the Python dir and
overwrite all existing files. Done.

You can also use the VapourSynth Editor by decompressing it into the same directory.

OS X Installation from Packages 
===============================

First download and install the prerequisites:
   * Xcode -- Available from the AppStore
   * `Homebrew <http://brew.sh/>`_ -- A package manager
   
Simply run these commands in a terminal and wait for them to complete::

   brew install vapoursynth

Linux Installation from Packages 
================================

Several distributions have packages:

   * `Ubuntu <https://launchpad.net/~djcj/+archive/ubuntu/vapoursynth>`_  -- PPA
   * `Gentoo <https://github.com/4re/vapoursynth-portage>`_  -- Portage overlay and instructions
   * `Arch Linux <https://www.archlinux.org/packages/?q=vapoursynth>`_  -- Packages

Linux and OS X Compilation Instructions
=======================================

These are the requirements:
   * Autoconf, Automake, and Libtool, probably recent versions

   * pkg-config

   * GCC 4.8 or newer, or Clang

   * Yasm

   * `Zimg v2 <https://github.com/sekrit-twc/zimg/releases>`_

   * Python 3

   * Cython installed in your Python 3 environment

   * Sphinx for the documentation (optional)

   * libass and ffmpeg for the Subtext plugin (optional)

   * ImageMagick 6.9.?.? for the Imwri plugin (optional)

{'fraction_non_alphanumeric': 0.14172313649564375, 'fraction_numerical': 0.007744433688286544, 'mean_word_length': 4.035087719298246, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 8, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '877699', 'n_tokens_mistral': 1566, 'n_tokens_neox': 1402, 'n_words': 574}