index.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 python2.7 .
  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] [-s | -sp] [--ical ICAL] [--version] lp_t lp_md
  40. positional arguments:
  41. lp_t Path to the LP template.
  42. lp_md Path to the LP markdown.
  43. optional arguments:
  44. -h, --help show this help message and exit
  45. -s, --schedule Generate LP schedule
  46. -sp, --speakers Generate LP speakers
  47. --ical ICAL Specify LP year as argument; generates iCal
  48. --version Show version number and exit.
  49. If the ``lps_gen`` command is installed, move to the :ref:`next
  50. section <lps-doc-sec-schedule>`; otherwise ask for
  51. :ref:`lps-doc-sec-help`.