Salome HOME
sat #8544 : some more doc
[tools/sat.git] / doc / src / release_notes / release_notes_5.5.0.rst
1 *****************
2 SAT version 5.5.0
3 *****************
4
5 Release Notes, November 2019
6 ============================
7
8
9 New features and improvments
10 ----------------------------
11
12
13
14 **pip mode for python modules**
15
16 This new mode was introduced in order to simplify the management of the python products (which number is constantly raising years after years...)
17 It is trigered by two properties within the application configuration file::
18
19     pip : 'yes'
20     pip_install_dir : 'python'
21
22 The first property activates the use of pip for all the products which have themselves the pip property activated (it concerns twenty products).
23 The second property specifies that the products should be installed directly in python directory, and not in their own specific directory.
24 This second property is usefull on windows platform to reduce the length of python path.
25
26 After several tests anf iterations, the following management was adopted:
27  - sat prepare <application> does nothing for pip products (because at prepare time we don't have python compiled, and the use of native pip may not be compatible).
28  - sat compile <application> use the pip module installed in python to get pip archives (wheels), store them in local archive directory, and install then either in python
29 directory, or in the product directory (in accordance to pip_install_dir property).
30
31
32 **single directory mode**
33
34 This new mode was introduced in order to get shorter path on windows platform. It is trigered by the property **single_install_dir**  within the application configuration file::
35
36         single_install_dir : "yes"
37
38 When activated, all the products which have themselves the property **single_install_dir** are installed in a common directory, called PRODUCTS.
39
40 **Generalisation of sat launcher command**
41
42 sat launcher command was extended to generate lauchers based on an executable given as argument with **-e** option::
43
44     sat launcher <application> -n salome.sh -e INSTALL/SALOME/bin/salome.py 
45
46 The command generates a launcher called salome.sh, which set the environment, and launch the INSTALL/SALOME/bin/salome.py.
47
48
49 **optimisation of sat compile**
50
51 For a complete compilation of salome, sat compile command was spending more than three minutes 
52 to calculate the dependencies and the order in which the products shoulb be compiled.
53 The algorithm used was clumsy, and confused.
54 It was therefore completely rewritten using a topological sorting. 
55 The products order calculation take now less than one second.
56
57 **new management of sections in product configution files**
58
59 The sections defined in products are used to specify the variations in the way products are built.
60 Depending upon the tag or version of the product, sat choose one of these sections and set the product definition according to it.
61 With time, the number of sections increased a lot. And it is not easy to visualise the differences between these sections, as they often
62 are identical, except few variations.
63 With the windows version, new sections are introduced to manage windows specifics.
64
65 Therefore the need of a new mode for managing sections arises, that would be simplier, more concise, and help the comprehension. 
66 This new mode is called **incremental**, and is trigered by the property **incremental** within the default section of the product::
67
68     default:
69     {
70         ....
71         properties:
72         {
73             incremental : "yes"
74         }
75         ...
76     }
77
78 When this mode is defined, the definition of the product is defined incrementaly, by taking into account the reference (the default section) and applying to it corrections defined in the other incremental sections. Depending upon the case several sections may be taken into account, in a predefined order:
79
80 * the default section, which contains the reference definition
81 * on windows platform, the default_win section if it exists
82 * the section corresponding to the tag. the algorithm to determine this section remains unchanged (what changes is that in incremental mode the section only define deltas, not the complete definition)
83 * on windows platform, if it exists the same section posfiwed with "_win".
84
85 Here is as an example the incremental definition used for boost products. For version 1.49 of boost, we extend the definition because we need to apply a patch::
86
87     default :
88     {
89         name : "boost"
90         build_source : "script"
91         compil_script :  $name + $VARS.scriptExtension
92         get_source : "archive"
93         environ :
94         {
95            env_script : $name + ".py"
96         }
97         depend : ['Python' ]
98         opt_depend : ['openmpi' ]
99         patches : [ ]
100         source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
101         build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
102         install_dir : 'base'
103         properties :
104         {
105             single_install_dir : "yes"
106             incremental : "yes"
107         }
108     }
109
110     version_1_49_0:
111     {
112         patches : [ "boost-1.49.0.patch" ]
113     }
114
115 ** Suppression of the global "no_base" flag in application configuration**
116
117 **no_base : "no"** is not interpreted anymore in application pyconf.
118 One has to use the **base** flag.
119 The possible values are:
120
121 * **yes** : all the products go into the base
122 * **no** : no product goes into the base
123
124 The complete usage rule of bases is explaned in the documentation.
125
126
127 Change log
128 ----------
129
130 This chapter does not provide the complete set of changes included, only the
131 most significant changes are listed.
132
133
134 +-------------+-----------------------------------------------------------------------------------+
135 | Artifact    | Description                                                                       |
136 +=============+===================================================================================+
137 | spns #8544  | The documentation has been improved!                                              |
138 +-------------+-----------------------------------------------------------------------------------+
139 | spns #16894 | clean the temp directory at the end of sat package                                |
140 +-------------+-----------------------------------------------------------------------------------+
141 | sat #12965  | optimisation of sat compile : better, simplier and faster algo for dependencies!  |
142 +-------------+-----------------------------------------------------------------------------------+
143 | sat #17206  | Use pip to manage python modules                                                  |
144 +-------------+-----------------------------------------------------------------------------------+
145 | sat #17137  | check_install functionality improvement : uses linux expending shell rules and    |
146 |             | interprets environment variables                                                  |
147 +-------------+-----------------------------------------------------------------------------------+
148 | sat #8544   | Update and improvement of documentation                                           |
149 +-------------+-----------------------------------------------------------------------------------+
150 | sat # 8547  | Generalisation of sat launcher command (new option --exe to specify which exe     |
151 |             | should be launched after setting the environment                                  |
152 +-------------+-----------------------------------------------------------------------------------+
153 | sat #17357  | New field "rm_products" to blacklist products in overwrite section of appli pyconf|
154 +-------------+-----------------------------------------------------------------------------------+
155 | sat #17194  | Parametrication of the value of INSTALL and BINARIES directories                  |
156 |             | (in src/internal_config/salomeTools.pyconf)                                       |
157 +-------------+-----------------------------------------------------------------------------------+
158 | sat #17639  | Warning when sat is launcher with python3                                         |
159 +-------------+-----------------------------------------------------------------------------------+
160 | sat #17359  | New incremental mode for the definition of products                               |
161 +-------------+-----------------------------------------------------------------------------------+
162 | sat #17766  | The environment of products is now  loaded in the order of product dependencies.  |
163 | sat #17848  | To treat correctly dependencies in the environment                                |
164 +-------------+-----------------------------------------------------------------------------------+
165 | sat #17955  | No unit tests for native products                                                 |
166 +-------------+-----------------------------------------------------------------------------------+
167 |             | SAT_DEBUG and SAT_VERBOSE environment variables are now available in the          |
168 |             | compilation, which can now forward the information and do the job!                |
169 +-------------+-----------------------------------------------------------------------------------+
170 | sat #18392  | Bug, binaries archives do not work when producrs are in base                      |
171 +-------------+-----------------------------------------------------------------------------------+