index.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .. highlight:: shell
  2. Installation
  3. ------------
  4. On a Debian based distribution, do::
  5. $ sudo apt-get install python-pip
  6. On GNU Guix, do::
  7. $ guix package -i python-pip
  8. Install globally
  9. ~~~~~~~~~~~~~~~~
  10. ::
  11. $ sudo pip install lpschedule-generator
  12. Install locally using virtualenv
  13. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  14. First get ``virtualenv``.
  15. On a Debian based distribution, do::
  16. $ sudo apt-get install python-virtualenv
  17. On GNU Guix, do::
  18. $ guix package -i python-virtualenv
  19. Make a separate ``lpschedule-generator`` directory and initialize the
  20. virtual environment in it::
  21. $ mkdir lpschedule-generator
  22. $ cd lpschedule-generator
  23. $ virtualenv -p python3 .
  24. $ source bin/activate
  25. Install ``lpschedule-generator`` inside this directory using ``pip``::
  26. $ pip install lpschedule-generator
  27. Activating virtual environment
  28. ``````````````````````````````
  29. Always activate the virtual environment before using the ``lps_gen``
  30. command::
  31. $ cd path/to/lpschedule-generator
  32. $ source bin/activate
  33. Test
  34. ~~~~
  35. Do::
  36. $ lps_gen --help
  37. .. highlight:: text
  38. You must get::
  39. usage: lps_gen [-h] [-sc | -sp] [--ical ICAL] [--version] lp_md
  40. positional arguments:
  41. lp_md Path to the LP markdown.
  42. optional arguments:
  43. -h, --help show this help message and exit
  44. -sc, --schedule Generate LP schedule
  45. -sp, --speakers Generate LP speakers
  46. --ical ICAL Specify LP year as argument; generates iCal
  47. --version Show version number and exit.
  48. If the ``lps_gen`` command is installed, move to the :ref:`next
  49. section <lps-doc-sec-schedule>`; otherwise ask for
  50. :ref:`lps-doc-sec-help`.