setup.rst

Mon, 29 Jan 2024 11:16:12 +0000

author
pilar <pilar.gumaclaramunt@cnr.it>
date
Mon, 29 Jan 2024 11:16:12 +0000
changeset 1
f0db47eb70b1
parent 0
fce4cae19357
child 2
763a7ac22031
permissions
-rw-r--r--

Removed a few example files

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@0 37 5) create new poetry project
pilar@0 38
pilar@0 39 .. code:: console
pilar@0 40
pilar@0 41 $ poetry new eldamwl_plot
pilar@0 42
pilar@0 43 7) install eldamwl_plot
pilar@0 44
pilar@0 45 .. code:: console
pilar@0 46
pilar@0 47 $ poetry install
pilar@0 48
pilar@0 49 8) activate virtual environment
pilar@0 50
pilar@0 51 .. code:: console
pilar@0 52
pilar@0 53 $ poetry shell
pilar@0 54
pilar@0 55 check whether installation was successfull
pilar@0 56 -----------------------------------------
pilar@0 57
pilar@0 58 .. code:: console
pilar@0 59
pilar@0 60 $ poetry shell
pilar@0 61 $ eldamwl_plot -h
pilar@0 62
pilar@0 63 or
pilar@0 64
pilar@0 65 .. code:: console
pilar@0 66
pilar@0 67 $ poetry run eldamwl_plot -h

mercurial