<commit_before>.. _installation-label:

Installation
============

Binary Installers
-----------------
The binary packages are distributed at PyPI in *wheel* format. 
They have EPICS 3.14.12.4 libraries statically builtin.

Make sure you have `pip <https://pypi.python.org/pypi/pip>`_ and 
`wheel <https://pypi.python.org/pypi/wheel>`_  installed, and run::

    # OS X
    $ sudo pip install pcaspy
    # Windows
    > C:\Python27\Scripts\pip.exe install pcaspy

If we do not have a *wheel* for your system, then pip will try to 
build from source. And then you would need EPICS base installed, 
see :ref:`getting-epics`.

Source
------
The source can be downloaded in various ways:

  * The released source tarballs can be found at `PyPI <https://pypi.python.org/pypi/pcaspy>`_.

  * From the `mercurial repository <https://code.google.com/p/pcaspy/source/browse/>`_, 
    the source can be downloaded as a zip package. 

  * Clone the repository if you feel adventurous::

    $ hg clone https://code.google.com/p/pcaspy/

Build
-----<commit_msg>elaborate on binary installation<commit_after>.. _installation-label:

Installation
============

Binary Installers
-----------------
The binary packages are distributed at PyPI. They have EPICS 3.14.12.4 libraries statically builtin.
If we do not have a *wheel* or *egg* package for your system, *pip* or *easy_install* will try to
build from source. And then you would need EPICS base installed, see :ref:`getting-epics`.

OS X
~~~~

Make sure you have `pip <https://pypi.python.org/pypi/pip>`_ and 
`wheel <https://pypi.python.org/pypi/wheel>`_  installed, and run::

    $ sudo pip install pcaspy

Windows
~~~~~~~

Make sure you have `pip <https://pypi.python.org/pypi/pip>`_ and
`wheel <https://pypi.python.org/pypi/wheel>`_  installed, and run::

    > C:\Python27\Scripts\pip.exe install pcaspy

Another option is the .msi installers.

Linux
~~~~~
PyPI does not allow upload linux-specific wheels package, yet (as of 2014).
The old *egg* format is used then::

    $ sudo easy_install pcaspy

Or install only for the current user::

    $ easy_install --user pcaspy


Source
------
The source can be downloaded in various ways:

  * The released source tarballs can be found at `PyPI <https://pypi.python.org/pypi/pcaspy>`_.

  * From the `mercurial repository <https://code.google.com/p/pcaspy/source/browse/>`_, 
    the source can be downloaded as a zip package. 

  * Clone the repository if you feel adventurous::

    $ hg clone https://code.google.com/p/pcaspy/

Build
-----
{'fraction_non_alphanumeric': 0.13559322033898305, 'fraction_numerical': 0.007883326763894364, 'mean_word_length': 3.2871621621621623, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3801496', 'n_tokens_mistral': 880, 'n_tokens_neox': 790, 'n_words': 287}