[gentoo] Sakia installation

Hi,

Perhaps it could help some one who is trying to build from sources, so,
there are the steps i’ve done on my Gentoo to build with success this GREAT software:

As user, download sources, lets say in ~/src directory:

$ cd ~/src
$ git clone https://github.com/duniter/sakia.git

Now, you need to become root to install all prerequisites:

$ sudo su -
# emerge -av dev-python/matplotlib dev-libs/libsodium dev-python/numpy dev-python/configparser dev-python/ipython sci-libs/scipy dev-python/jsonschema dev-python/pyside dev-python/pygments app-arch/upx-ucl
# pip install --upgrade pyinstaller asynctest notify2
# cd /home/user/src/sakia
# pip install -r ./requirements.txt --upgrade
# exit

Note: /user/ should be replaced by your real username :wink:

Back in your user account, build the application:

$ cd ~/src/sakia
$ python ./gen_resources.py
$ python ./gen_translations.py
$ pyinstaller --paths /usr/lib64/python3.5/site-packages sakia.spec
33 INFO: PyInstaller: 3.2
34 INFO: Python: 3.5.2
34 INFO: Platform: Linux-4.4.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-4200M_CPU_@_2.50GHz-with-gentoo-2.2
37 INFO: UPX is available.
38 INFO: Extending PYTHONPATH with paths
...

and if everything is ok, you can launch application:

$ cd ~/src/sakia/dist/sakia
$ ./sakia

Enjoy !

5 Likes

Excellent, great to see that it’s not so hard to start Sakia for new technical users :wink:

You should consider upgrading the wiki for Gentoo specific informations :slight_smile: https://github.com/duniter/sakia/wiki/Sakia-install-for-developpers

Please note that we use Pyenv to install every sakia libs locally to the developper environment and not system-wide. It’s needed because sakia uses really up-to-date libraries (sometimes too much up-to-date) which can suffer of some incompatibilites with system repositories. :slight_smile: But great to see that it works natively with gentoo repositories !