Salome HOME
Updated copyright comment
[samples/pyhello.git] / README
1 ***************************
2 About SALOME PYHELLO sample
3 ***************************
4
5 SALOME PYHELLO module presents example of a simple SALOME module, implemented
6 with Python. This sample demonstrates a way to create a modules which provide
7 services via the CORBA engine.
8
9 For more information about SALOME platform please visit the SALOME web site:
10
11   <https://www.salome-platform.org/>
12
13 =======
14 License
15 =======
16
17 SALOME platform is distributed under the GNU Lesser General Public License.
18 See COPYING file for more details.
19
20 ============
21 Installation
22 ============
23
24 --------------
25 Pre-requisites
26 --------------
27
28 SALOME platform relies on a set of third-party softwares; some of them are needed
29 at build time only, while other ones are needed in runtime also.
30
31 For more information about the pre-requisites please visit SALOME platform web
32 site:
33
34 * Check Release Notes and Software Requirements of the latest SALOME release at
35
36   <https://www.salome-platform.org/?page_id=15/>
37
38 Note: SALOME PYHELLO needs SALOME KERNEL and SALOME GUI as pre-requisites.
39
40 ------------------
41 Basic Installation
42 ------------------
43
44 The build procedure of the SALOME platform is implemented with CMake.
45 In order to build the module you have to do the following actions:
46
47 1. Set up environment for pre-requisites (see "Pre-requisites" section above).
48
49 2. Create a build directory:
50
51    % mkdir PYHELLO_BUILD
52
53 3. Configure the build procedure:
54
55    % cd PYHELLO_BUILD
56    % cmake -DCMAKE_BUILD_TYPE=<mode> -DCMAKE_INSTALL_PREFIX=<installation_directory> <path_to_src_dir>
57
58    where
59    - <mode> is either Release or Debug (default: Release);
60    - <installation_directory> is a destination folder to install SALOME PYHELLO
61      module (default: /usr);
62    - <path_to_src_dir> is a path to the SALOME PYHELLO sources directory.
63
64    Note: by default (if CMAKE_INSTALL_PREFIX option is not given), SALOME PYHELLO
65    module will be configured for installation to the /usr directory that requires
66    root permissions to complete the installation.
67
68 4. Build and install:
69
70    % make
71    % make install
72
73    This will install SALOME PYHELLO module to the <installation_directory>
74    specified to cmake command on the previous step.
75
76 -------------------
77 Custom installation
78 -------------------
79
80 SALOME PYHELLO module supports a set of advanced configuration options;
81 for more details learn CMakeLists.txt file in the root source directory.
82
83 You can also use other options of cmake command to customize your installation.
84 Learn more about available options by typing
85
86    % cmake --help
87
88 ===============
89 Troubleshooting
90 ===============
91
92 Please, send a mail to webmaster.salome@opencascade.com.