requirements_and_installation.rst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .. _requirements_and_installation:
  2. Requirements and installation
  3. =============================
  4. This document describes the PieTime requirements and installation process.
  5. Requirements
  6. ------------
  7. PieTime requires the following to work:
  8. * Python 2.7,
  9. * PyGame 1.9.1 (also tested with 1.9.2a0),
  10. * requests 2.4.1 (should work with newer versions).
  11. Installing on Raspbian Jessie
  12. -----------------------------
  13. If you're using Raspbian Jessie on your Raspberry Pi, you can install PieTime
  14. using binary packages by following the guide below.
  15. **Add PieTime APT repository**
  16. Create the file /etc/apt/sources.list.d/pie-time.list and add the following
  17. line:
  18. .. sourcecode:: text
  19. deb https://pie-time.bthlabs.pl/repos/apt/ raspbian-jessie main
  20. **Import the repository signing key**
  21. .. sourcecode:: console
  22. $ wget --quiet -O - https://pie-time.bthlabs.pl/keys/apt.asc | sudo apt-key add -
  23. **Update the package lists and install PieTime**
  24. .. sourcecode:: console
  25. $ sudo apt-get update
  26. $ sudo apt-get install pie-time
  27. Installing on other systems using PyPI
  28. --------------------------------------
  29. If you wish to install PieTime on system other than Raspbian Jessie (and
  30. potentially on device other than Raspberry Pi), you can do so using the
  31. PyPI package by using the guide below.
  32. #. Install PyGame dependencies,
  33. #. Run ``$ sudo pip install pie_time`` to install PieTime and its dependencies.
  34. **NOTE**: The second step may require installing additional packages from the
  35. system repository, depending on your current setup.
  36. Installing from the source
  37. --------------------------
  38. In order to install PieTime, please follow the guide below. Note that this
  39. guide assumes Unix-like OS and root access.
  40. #. Install PyGame dependencies,
  41. #. Clone the repository ``$ git clone https://git.bthlabs.pl/tomekwojcik/pie-time.git``,
  42. #. Enter the PieTime directory: ``$ cd pie-time``,
  43. #. Install PieTime: ``$ python setup.py install``.
  44. **NOTE**: The fourth step may require installing additional packages from the
  45. system repository, depending on your current setup.
  46. Installing as non-root user
  47. ---------------------------
  48. If you wish to install PieTime as non-root user, you can do so by installing
  49. it from the PyPI package or source code using a virtual env.
  50. To learn more about Python virtual envs, see the
  51. `virtual env documentation <https://virtualenv.readthedocs.org/en/latest/>`_