Skip to content

Latest commit

 

History

History
123 lines (80 loc) · 2.6 KB

INSTALL.md

File metadata and controls

123 lines (80 loc) · 2.6 KB

Installation manual for Byro

Non python dependency

Package from repository in most common Linux distributions.

Fedora 28

sudo dnf install gcc python3 python3-pip git tesseract tesseract-langpack-ces poppler-utils \
texlive texlive-collection-langczechslovak texlive-collection-mathextra texlive-mathspec texlive-euenc \
texlive-xetex texlive-xetex-def texlive-xltxtra texlive-tcolorbox texlive-datetime2-czech\
pandoc libreoffice gnuplot

(~ 212 MB download, ~ 514 MB installed)

Ubuntu 14.04 LTS

sudo apt-get install gcc python3 python3-pip git pandoc libreoffice \
tesseract-ocr tesseract-ocr-ces poppler-utils \
texlive texlive-lang-czechslovak texlive-xetex texlive-latex-extra gnuplot

(~ 1 GB)

Other OS and other distribution

App is writen in Python 3 and using multiplatform technology (XeLaTeX, Pandoc, Tesseract). It should be possible to port to other os and other distribution. Feel free to send pull request with manual for other OS.

Other dependency

Other dependency that are not present in repository:

Install

Once you have all OS dependencies installed, you can run following command:

sudo pip3 install git+https://github.com/pirati-cz/byro

Then just run byro!

Reinstall

sudo pip3 uninstall byro
sudo pip3 install git+https://github.com/pirati-cz/byro

Config file

Important parameters are in config file: byro/resource/config.ini. After first run is created $HOME/.byro.ini.

Generaly args that start with '--' (eg. --config) can also be set in a config file (files/config.ini or specified via -c) by using .ini or .yaml-style syntax (eg. config=value). If an arg is specified in more than one place, then command-line values override config file values which override defaults.

Tests

Unit tests run:

python3 -m unittest

For more details add -v.

Update

Update already installed instance:

pip3 install --upgrade byro

Remove

Remove from os:

pip3 uninstall byro
[rm ~/.byro.ini]

Using

Everythink is in the help: byro -h

Creating distribution packages

RPM

./setup.py bdist_rpm