Skip to content
installation.rst 2.95 KiB
Newer Older
Fabrice Salvaire's avatar
Fabrice Salvaire committed
.. include:: project-links.txt
.. include:: abbreviation.txt

.. _installation-page:

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

Fabrice Salvaire's avatar
Fabrice Salvaire committed
**Note to Packagers: Please don't create PythonicGcodeMachine package (PiPY do the job)**
Fabrice Salvaire's avatar
Fabrice Salvaire committed

On Windows
----------

Firstly, you have to install the `Anaconda Distribution <https://www.anaconda.com/download/>`_ so
as to get a full featured Python 3 environment.

Then open the `Anaconda Navigator <https://docs.continuum.io/anaconda/navigator/>`_ and launch a console for your root environment.

Fabrice Salvaire's avatar
Fabrice Salvaire committed
You can now run *pip* to install PythonicGcodeMachine in your root environment using this command:
Fabrice Salvaire's avatar
Fabrice Salvaire committed

.. code-block:: sh

Fabrice Salvaire's avatar
Fabrice Salvaire committed
  pip install PythonicGcodeMachine
Fabrice Salvaire's avatar
Fabrice Salvaire committed

On Linux
--------

Firstly, you have to install Python 3 from your distribution.

Fabrice Salvaire's avatar
Fabrice Salvaire committed
Then you can install PythonicGcodeMachine using *pip* or from source. See supra.
Fabrice Salvaire's avatar
Fabrice Salvaire committed

On OSX
------

There are several ways to get Python on OSX:

 * use the built in Python
 * install `Miniconda <https://conda.io/miniconda.html>`_
 * install the `Anaconda Distribution <https://www.anaconda.com/download/>`_.
 * install from Brew `brew install python3` **(reported to work)**

Fabrice Salvaire's avatar
Fabrice Salvaire committed
You can install PythonicGcodeMachine using *pip* or from source. See supra.
Fabrice Salvaire's avatar
Fabrice Salvaire committed

Installation from PyPi Repository
---------------------------------

Fabrice Salvaire's avatar
Fabrice Salvaire committed
PythonicGcodeMachine is available on the Python Packages |Pypi|_ repository at |PythonicGcodeMachine@pypi|
Fabrice Salvaire's avatar
Fabrice Salvaire committed

Run this command in the console to install the latest release:

.. code-block:: sh

Fabrice Salvaire's avatar
Fabrice Salvaire committed
  pip install PythonicGcodeMachine
Fabrice Salvaire's avatar
Fabrice Salvaire committed

Install a more recent version from Github
-----------------------------------------

If you want to install a version which is not yet released on Pypi, you can use one of theses
commands to install the stable or devel branch:

.. code-block:: sh

Fabrice Salvaire's avatar
Fabrice Salvaire committed
  pip install git+https://github.com/FabriceSalvaire/PythonicGcodeMachine
Fabrice Salvaire's avatar
Fabrice Salvaire committed
  pip install git+https://github.com/FabriceSalvaire/PythonicGcodeMachine@devel
Fabrice Salvaire's avatar
Fabrice Salvaire committed

Installation from Source
------------------------

Fabrice Salvaire's avatar
Fabrice Salvaire committed
The PythonicGcodeMachine source code is hosted at |PythonicGcodeMachine@github|
Fabrice Salvaire's avatar
Fabrice Salvaire committed

.. add link to pages ...

You have to solution to get the source code, the first one is to clone the repository, but if you
Fabrice Salvaire's avatar
Fabrice Salvaire committed
are not familiar with Git then you can simply download an archive either from the PythonicGcodeMachine Pypi page
Fabrice Salvaire's avatar
Fabrice Salvaire committed
(at the bottom) or the GitHub page (see clone or download button).

To clone the Git repository, run this command in a console:

.. code-block:: sh

Fabrice Salvaire's avatar
Fabrice Salvaire committed
  git clone https://github.com/FabriceSalvaire/PythonicGcodeMachine.git
Fabrice Salvaire's avatar
Fabrice Salvaire committed
Then to build and install PythonicGcodeMachine run these commands:
Fabrice Salvaire's avatar
Fabrice Salvaire committed

.. code-block:: sh

  python setup.py build
  python setup.py install

Dependencies
------------

Fabrice Salvaire's avatar
Fabrice Salvaire committed
PythonicGcodeMachine requires the following dependencies:
Fabrice Salvaire's avatar
Fabrice Salvaire committed

 * |Python|_ 3
Fabrice Salvaire's avatar
Fabrice Salvaire committed
 * these `Python packages <https://github.com/FabriceSalvaire/pythonic-gcode-machine/blob/master/requirements.txt>`_
Fabrice Salvaire's avatar
Fabrice Salvaire committed
For development, you could also need the `dependencies
<https://github.com/FabriceSalvaire/pythonic-gcode-machine/blob/master/requirements-dev.txt>`_.