setup.rst

Tue, 02 Jul 2024 10:29:59 +0000

author
pilar <pilar.gumaclaramunt@cnr.it>
date
Tue, 02 Jul 2024 10:29:59 +0000
changeset 3
bd2181f8295e
parent 2
763a7ac22031
permissions
-rw-r--r--

Added two sample plots

pilar@0 1 ============
pilar@0 2 Installation
pilar@0 3 ============
pilar@0 4
pilar@0 5 The handling of packages and the virtual environment is managed by poetry.
pilar@0 6
pilar@0 7 Installation on production system as user
pilar@0 8 -----------------------------------------
pilar@0 9
pilar@0 10 system requirements: pip, python3
pilar@0 11
pilar@0 12 1) install poetry
pilar@0 13
pilar@0 14 .. code:: console
pilar@0 15
pilar@0 16 $ python -mpip install --user poetry
pilar@0 17
pilar@0 18
pilar@0 19 2) set <path>, where poetry puts the virtual environment
pilar@0 20
pilar@0 21 .. code:: console
pilar@0 22
pilar@0 23 $ poetry config virtualenvs.path <path>
pilar@0 24
pilar@0 25 3) on slackware, it is necessary to set poetry installer type
pilar@0 26
pilar@0 27 .. code:: console
pilar@0 28
pilar@0 29 $ poetry config experimental.new-installer false
pilar@0 30
pilar@0 31 4) download project from the repository
pilar@0 32
pilar@0 33 .. code:: console
pilar@0 34
pilar@0 35 repository
pilar@0 36
pilar@2 37 5) install eldamwl_plot
pilar@0 38
pilar@0 39 .. code:: console
pilar@0 40
pilar@0 41 $ poetry install
pilar@0 42
pilar@2 43 6) activate virtual environment
pilar@0 44
pilar@0 45 .. code:: console
pilar@0 46
pilar@0 47 $ poetry shell
pilar@0 48
pilar@2 49 Check whether the installation was successful
pilar@2 50 ---------------------------------------------
pilar@0 51
pilar@0 52 .. code:: console
pilar@0 53
pilar@0 54 $ poetry shell
pilar@2 55 $ python eldamwl_plot.py -h
pilar@0 56
pilar@0 57 or
pilar@0 58
pilar@0 59 .. code:: console
pilar@0 60
pilar@2 61 $ poetry run python eldamwl_plot.py -h

mercurial