-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
232 lines (145 loc) · 5.22 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
======================================
INSTALL: pydabu -- Python data bubble
======================================
:Version: 2023-05-10
:Author: Daniel Mohr
:Email: [email protected]
.. contents::
.. footer::
###Page### / ###Total###
INSTALL: pydabu
+++++++++++++++
info
====
before you install
==================
Modules
-------
pydabu needs the following Python modules (most of them are standard and
already in your Python installation from a package management)
* argparse
* base64
* datetime
* getpass
* hashlib
* json
* jsonschema
* logging
* os
* os.path
* pkgutil
* re
* setuptools
* subprocess
* sys
* tempfile
* time
* types
* warnings
and the own modules which comes with this package. Most of the modules
are only necessary at runtime and only in some components.
You can also asked the installation routine/script for the Python modules::
env python3 setup.py --help
env python3 setup.py --requires
There is also a small extra command to check for availability of
necessary Python modules::
env python3 setup.py check_modules
If you want to use this complete software you should have no modules
which are not available.
The following modules are optional:
* cfchecker.cfchecks
* netCDF4
unittests
---------
You can run a few unittests::
env python3 setup.py run_unittest --src local
But the scripts are not tested before installing.
After installation you can run unittests on the scripts as well
(see :ref:`after you install.unittests`).
pytest
------
Instead of the standard module unittest you can also use pytest to run
all available unittests (including scripts)::
env python3 setup.py run_pytest --src local
But the scripts are not tested before installing.
After installation you can run these tests on the scripts as well
(see :ref:`after you install.pytest`).
install by setup.py using pip
=============================
You can use the Python package manager system pip. This allows you to
handle dependencies, too.
global-install
--------------
To install this software global to / the following steps are to perform::
tar xzf pydabu-*.tar.*
cd pydabu-*/
pip3 install --system .
Or you can directly install from the internet::
pip3 install --system https://gitlab.com/dlr-pa/pydabu/-/archive/master/pydabu-master.zip
Then you can uninstall with this information.
home-install
------------
To install this software to your $HOME the following steps are to perform::
tar xzf pydabu-*.tar.*
cd pydabu-*/
pip3 install --user .
Or you can directly install from the internet::
pip3 install --user https://gitlab.com/dlr-pa/pydabu/-/archive/master/pydabu-master.zip
Then you can uninstall with this information.
uninstall
---------
If you have done the above installation you can use pip to uninstall::
pip3 uninstall pydabu
hints (pip)
-----------
Keep in mind to have the right paths.
For the above installation to $HOME the software installs in::
~/.local/bin
~/.local/lib/python*
Please make sure to have these paths in $PATH and $PYTHONPATH, respectively.
For example::
export PATH=$PATH:~/.local/bin
export PYTHONPATH=~/.local/lib/python3.6
after you install
=================
.. _after you install.unittests:
unittests (after installation)
------------------------------
Now you can run all available unittests (including scripts)::
env python3 setup.py run_unittest
.. _after you install.pytest:
pytest (after installation)
---------------------------
Instead of the standard module unittest you can also use pytest to run
all available unittests (including scripts)::
env python3 setup.py run_pytest
This command has a few interesting parameters, e. g.::
env python3 setup.py run_pytest --parallel --coverage
hints
=====
Ubuntu 20.04 and 22.04
----------------------
You can find most necessary modules in the package management of Ubuntu 20.04,
e. g. ::
sudo apt install python3-jsonschema python3-netcdf4 python3-pip python3-setuptools python3-wheel
The command check_netcdf_file of :program:`pydabu` needs the package
cfchecker.cfchecks which is not in the package management.
You can install it with pip, e. g.::
sudo apt install libudunits2-0
pip3 install cfchecker
To build the documentation you do not only need the above packages. In addition
we use sphinx-jsonschema, e. g.::
sudo apt install latexmk make python3-recommonmark python3-sphinx python3-sphinx-argparse rsync texlive-fonts-recommended texlive-latex-extra texlive-latex-recommended
pip3 install sphinx-jsonschema
For unning the tests with `pytest` you need::
sudo apt install python3-pytest python3-pytest-cov python3-pytest-xdist
openSUSE Leap 15.4 and 15.5
---------------------------
To use :program:`pydabu` you need from the package management::
zypper --non-interactive install gcc lsb-release netcdf-devel python3 python3-devel python3-jsonschema python3-numpy python3-pip python3-setuptools python3-wheel udunits2-devel
The command check_netcdf_file of :program:`pydabu` needs the package
cfchecker.cfchecks which is not in the package management.
You can install it with pip, e. g.::
pip3 install --user netCDF4 cfchecker
For unning the tests with `pytest` you need::
zypper --non-interactive install python3-pytest python3-pytest-cov python3-pytest-xdist