5. Installation¶
Note to Packagers: Please don’t create Patro package (PiPY do the job)
5.1. On Windows¶
Firstly, you have to install the Anaconda Distribution so as to get a full featured Python 3 environment.
Then open the Anaconda Navigator and launch a console for your root environment.
You can now run pip to install Patro in your root environment using this command:
pip install Patro
5.2. On Linux¶
Firstly, you have to install Python 3 from your distribution.
Then you can install Patro using pip or from source. See supra.
5.3. On OSX¶
There are several ways to get Python on OSX:
- use the built in Python
- install Miniconda
- install the Anaconda Distribution.
- install from Brew brew install python3 (reported to work)
You can install Patro using pip or from source. See supra.
5.4. Installation from PyPi Repository¶
Patro is available on the Python Packages PyPI repository at https://pypi.python.org/pypi/Patro
Run this command in the console to install the latest release:
pip install Patro
5.5. 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:
pip install git+https://github.com/FabriceSalvaire/Patro
pip install git+https://github.com/FabriceSalvaire/Patro@devel
5.6. Installation from Source¶
The Patro source code is hosted at https://github.com/FabriceSalvaire/Patro
You have to solution to get the source code, the first one is to clone the repository, but if you are not familiar with Git then you can simply download an archive either from the Patro Pypi page (at the bottom) or the GitHub page (see clone or download button).
To clone the Git repository, run this command in a console:
git clone https://github.com/FabriceSalvaire/Patro.git
Then to build and install Patro run these commands:
python setup.py build
python setup.py install
5.7. Dependencies¶
See requirements.txt file for normal installation and requirements-dev.txt to regenerate the package.