]> SALOME platform Git repositories - tools/sat.git/blob - doc/src/release_notes/release_notes_5.5.0.rst
Salome HOME
small corrections
[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 .. warning:: This documentation is under construction!
9
10 New features and improvments
11 ----------------------------
12
13 **pip mode for python modules**
14
15 This new mode was introduced in order to simplify the management of the python products (which number is constantly raising years after years...)
16 It is trigered by two properties within the application configuration file::
17
18     pip : 'yes'
19     pip_install_dir : 'python'
20
21 The first property activates the use of pip for all the products which have themselves the pip property activated (it concerns twenty products).
22 The second property specifies that the products should be installed directly in python directory, and not in their own specific directory.
23 This second property is usefull on windows platform to reduce the length of python path.
24
25 After several tests anf iterations, the following management was adopted:
26  - 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).
27  - 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
28 directory, or in the product directory (in accordance to pip_install_dir property).
29
30
31 **single directory mode**
32
33 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::
34
35         single_install_dir : "yes"
36
37 When activated, all the products which have themselves the property **single_install_dir** are installed in a common directory, called PRODUCTS.
38
39 **Generalisation of sat launcher command**
40
41 sat launcher command was extended to generate lauchers based on an executable given as argument with **-e** option::
42
43     sat launcher <application> -n salome.sh -e INSTALL/SALOME/bin/salome.py 
44
45 The command generates a launcher called salome.sh, which set the environment, and launch the INSTALL/SALOME/bin/salome.py.
46
47
48 **optimisation of sat compile**
49
50 For a complete compilation of salome, sat compile command was spending more than three minutes 
51 to calculate the dependencies and the order in which the products shoulb be compiled.
52 The algorithm used was clumsy, and confused.
53 It was therefore completely rewritten using a topological sorting. 
54 The products order calculation take now less than one second.
55
56 **new management of sections in product configution files**
57
58 The sections defined in products are used to specify the variations in the way products are built.
59 Depending upon the tag or version of the product, sat choose one of these sections and set the product definition according to it.
60 With time, the number of sections increased a lot. And it is not easy to visualise the differences between these sections, as they often
61 are identical, except few variations.
62 With the windows version, new sections are introduced to manage windows specifics.
63
64 Therefore the need of a new mode for managing sections arises, that would be simplier, more concise, and help the comprehension. 
65 This new mode is called **incremental**, and is trigered by the property **incremental** within the default section of the product::
66
67     default:
68     {
69         ....
70         properties:
71         {
72             incremental : "yes"
73         }
74         ...
75     }
76
77 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:
78
79 * the default section, which contains the reference definition
80 * on windows platform, the default_win section if it exists
81 * 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)
82 * on windows platform, if it exists the same section posfiwed with "_win".
83
84 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::
85
86     default :
87     {
88         name : "boost"
89         build_source : "script"
90         compil_script :  $name + $VARS.scriptExtension
91         get_source : "archive"
92         environ :
93         {
94            env_script : $name + ".py"
95         }
96         depend : ['Python' ]
97         opt_depend : ['openmpi' ]
98         patches : [ ]
99         source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
100         build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
101         install_dir : 'base'
102         properties :
103         {
104             single_install_dir : "yes"
105             incremental : "yes"
106         }
107     }
108
109     version_1_49_0:
110     {
111         patches : [ "boost-1.49.0.patch" ]
112     }
113
114
115
116 Change log
117 ----------
118
119 This chapter does not provide the complete set of changes included, only the
120 most significant changes are listed.
121
122
123 +-------------+-----------------------------------------------------------------------------------+
124 | Artifact    | Description                                                                       |
125 +=============+===================================================================================+
126 | spns #16894 | clean the temp directory at the end of sat package                                |
127 +-------------+-----------------------------------------------------------------------------------+
128 | sat #12965  | optimisation of sat compile : better, simplier and faster algo for dependencies!  |
129 +-------------+-----------------------------------------------------------------------------------+
130 | sat # 17206 | Use pip to manage python modules                                                  |
131 +-------------+-----------------------------------------------------------------------------------+
132 | sat #17137  | check_install functionality improvement : uses linux expending shell rules and    |
133 |             | interprets environment variables                                                  |
134 +-------------+-----------------------------------------------------------------------------------+
135 | sat #8544   | Update and improvement of documentation                                           |
136 +-------------+-----------------------------------------------------------------------------------+
137 | sat # 8547  | Generalisation of sat launcher command (new option --exe to specify which exe     |
138 |             | should be launched after setting the environment                                  |
139 +-------------+-----------------------------------------------------------------------------------+
140 | sat #17357  | New field in application pyconf "rm_rpoducts" to blacklist some products          |
141 +-------------+-----------------------------------------------------------------------------------+
142 | sat #17194  | Parametrication of the value of INSTALL and BINARIES directories                  |
143 |             | (in src/internal_config/salomeTools.pyconf)                                       |
144 +-------------+-----------------------------------------------------------------------------------+
145 | sat #17639  | Warning when sat is launcher with python3                                         |
146 +-------------+-----------------------------------------------------------------------------------+
147 | sat #17359  | New incremental mode for the definition of products                               |
148 +-------------+-----------------------------------------------------------------------------------+
149 |             |                                                                                   |
150 +-------------+-----------------------------------------------------------------------------------+