|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>install</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>install</h1> |
|
23 <p> |
|
24 Installation script for the eric6 IDE and all eric6 related tools. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>BlackLists</td></tr><tr><td>PlatformsBlackLists</td></tr><tr><td>PythonMarkers</td></tr><tr><td>PythonTextMarkers</td></tr><tr><td>apisDir</td></tr><tr><td>cfg</td></tr><tr><td>configLength</td></tr><tr><td>configName</td></tr><tr><td>currDir</td></tr><tr><td>defaultMacAppBundleName</td></tr><tr><td>defaultMacAppBundlePath</td></tr><tr><td>defaultMacPythonExe</td></tr><tr><td>distDir</td></tr><tr><td>doCleanDesktopLinks</td></tr><tr><td>doCleanup</td></tr><tr><td>doCompile</td></tr><tr><td>eric6SourceDir</td></tr><tr><td>forceCleanDesktopLinks</td></tr><tr><td>includePythonVariant</td></tr><tr><td>installApis</td></tr><tr><td>macAppBundleName</td></tr><tr><td>macAppBundlePath</td></tr><tr><td>macPythonExe</td></tr><tr><td>modDir</td></tr><tr><td>platBinDir</td></tr><tr><td>platBinDirOld</td></tr><tr><td>progLanguages</td></tr><tr><td>progName</td></tr><tr><td>pyModDir</td></tr><tr><td>pyqtOverride</td></tr><tr><td>pyqtVariant</td></tr><tr><td>sourceDir</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr><td>None</td></tr> |
|
33 </table> |
|
34 <h3>Functions</h3> |
|
35 <table> |
|
36 <tr> |
|
37 <td><a href="#__pyName">__pyName</a></td> |
|
38 <td>Local function to create the Python source file name for the compiled .ui file.</td> |
|
39 </tr><tr> |
|
40 <td><a href="#cleanUp">cleanUp</a></td> |
|
41 <td>Uninstall the old eric files.</td> |
|
42 </tr><tr> |
|
43 <td><a href="#cleanUpLinuxSpecifics">cleanUpLinuxSpecifics</a></td> |
|
44 <td>Clean up Linux specific files.</td> |
|
45 </tr><tr> |
|
46 <td><a href="#cleanUpMacAppBundle">cleanUpMacAppBundle</a></td> |
|
47 <td>Uninstall the macOS application bundle.</td> |
|
48 </tr><tr> |
|
49 <td><a href="#cleanUpWindowsLinks">cleanUpWindowsLinks</a></td> |
|
50 <td>Clean up the Desktop and Start Menu entries for Windows.</td> |
|
51 </tr><tr> |
|
52 <td><a href="#cleanupSource">cleanupSource</a></td> |
|
53 <td>Cleanup the sources directory to get rid of leftover files and directories.</td> |
|
54 </tr><tr> |
|
55 <td><a href="#compileUiFiles">compileUiFiles</a></td> |
|
56 <td>Compile the .ui files to Python sources.</td> |
|
57 </tr><tr> |
|
58 <td><a href="#copyAppStreamFile">copyAppStreamFile</a></td> |
|
59 <td>Modify an appstream file and write it to its destination.</td> |
|
60 </tr><tr> |
|
61 <td><a href="#copyDesktopFile">copyDesktopFile</a></td> |
|
62 <td>Modify a desktop file and write it to its destination.</td> |
|
63 </tr><tr> |
|
64 <td><a href="#copyToFile">copyToFile</a></td> |
|
65 <td>Copy a string to a file.</td> |
|
66 </tr><tr> |
|
67 <td><a href="#copyTree">copyTree</a></td> |
|
68 <td>Copy Python, translation, documentation, wizards configuration, designer template files and DTDs of a directory tree.</td> |
|
69 </tr><tr> |
|
70 <td><a href="#createConfig">createConfig</a></td> |
|
71 <td>Create a config file with the respective config entries.</td> |
|
72 </tr><tr> |
|
73 <td><a href="#createGlobalPluginsDir">createGlobalPluginsDir</a></td> |
|
74 <td>Create the global plugins directory, if it doesn't exist.</td> |
|
75 </tr><tr> |
|
76 <td><a href="#createInstallConfig">createInstallConfig</a></td> |
|
77 <td>Create the installation config dictionary.</td> |
|
78 </tr><tr> |
|
79 <td><a href="#createLinuxSpecifics">createLinuxSpecifics</a></td> |
|
80 <td>Install Linux specific files.</td> |
|
81 </tr><tr> |
|
82 <td><a href="#createMacAppBundle">createMacAppBundle</a></td> |
|
83 <td>Create a Mac application bundle.</td> |
|
84 </tr><tr> |
|
85 <td><a href="#createPyWrapper">createPyWrapper</a></td> |
|
86 <td>Create an executable wrapper for a Python script.</td> |
|
87 </tr><tr> |
|
88 <td><a href="#createWindowsLinks">createWindowsLinks</a></td> |
|
89 <td>Create Desktop and Start Menu links.</td> |
|
90 </tr><tr> |
|
91 <td><a href="#createWindowsShortcut">createWindowsShortcut</a></td> |
|
92 <td>Create Windows shortcut.</td> |
|
93 </tr><tr> |
|
94 <td><a href="#determinePyQtVariant">determinePyQtVariant</a></td> |
|
95 <td>Module function to determine the PyQt variant to be used.</td> |
|
96 </tr><tr> |
|
97 <td><a href="#doDependancyChecks">doDependancyChecks</a></td> |
|
98 <td>Perform some dependency checks.</td> |
|
99 </tr><tr> |
|
100 <td><a href="#exit">exit</a></td> |
|
101 <td>Exit the install script.</td> |
|
102 </tr><tr> |
|
103 <td><a href="#getWinregEntry">getWinregEntry</a></td> |
|
104 <td>Function to get an entry from the Windows Registry.</td> |
|
105 </tr><tr> |
|
106 <td><a href="#initGlobals">initGlobals</a></td> |
|
107 <td>Module function to set the values of globals that need more than a simple assignment.</td> |
|
108 </tr><tr> |
|
109 <td><a href="#installEric">installEric</a></td> |
|
110 <td>Actually perform the installation steps.</td> |
|
111 </tr><tr> |
|
112 <td><a href="#main">main</a></td> |
|
113 <td>The main function of the script.</td> |
|
114 </tr><tr> |
|
115 <td><a href="#pipInstall">pipInstall</a></td> |
|
116 <td>Install the given package via pip.</td> |
|
117 </tr><tr> |
|
118 <td><a href="#prepareInfoFile">prepareInfoFile</a></td> |
|
119 <td>Function to prepare an Info.py file when installing from source.</td> |
|
120 </tr><tr> |
|
121 <td><a href="#shutilCopy">shutilCopy</a></td> |
|
122 <td>Wrapper function around shutil.copy() to ensure the permissions.</td> |
|
123 </tr><tr> |
|
124 <td><a href="#usage">usage</a></td> |
|
125 <td>Display a usage message and exit.</td> |
|
126 </tr><tr> |
|
127 <td><a href="#windowsDesktopEntries">windowsDesktopEntries</a></td> |
|
128 <td>Function to generate data for the Windows Desktop links.</td> |
|
129 </tr><tr> |
|
130 <td><a href="#windowsDesktopNames">windowsDesktopNames</a></td> |
|
131 <td>Function to generate the link names for the Windows Desktop.</td> |
|
132 </tr><tr> |
|
133 <td><a href="#windowsProgramsEntry">windowsProgramsEntry</a></td> |
|
134 <td>Function to generate the name of the Start Menu top entry.</td> |
|
135 </tr><tr> |
|
136 <td><a href="#wrapperNames">wrapperNames</a></td> |
|
137 <td>Create the platform specific names for the wrapper script.</td> |
|
138 </tr> |
|
139 </table> |
|
140 <hr /><hr /> |
|
141 <a NAME="__pyName" ID="__pyName"></a> |
|
142 <h2>__pyName</h2> |
|
143 <b>__pyName</b>(<i>py_dir, py_file</i>) |
|
144 <p> |
|
145 Local function to create the Python source file name for the compiled |
|
146 .ui file. |
|
147 </p><dl> |
|
148 <dt><i>py_dir</i></dt> |
|
149 <dd> |
|
150 suggested name of the directory (string) |
|
151 </dd><dt><i>py_file</i></dt> |
|
152 <dd> |
|
153 suggested name for the compile source file (string) |
|
154 </dd> |
|
155 </dl><dl> |
|
156 <dt>Returns:</dt> |
|
157 <dd> |
|
158 tuple of directory name (string) and source file name (string) |
|
159 </dd> |
|
160 </dl> |
|
161 <div align="right"><a href="#top">Up</a></div> |
|
162 <hr /><hr /> |
|
163 <a NAME="cleanUp" ID="cleanUp"></a> |
|
164 <h2>cleanUp</h2> |
|
165 <b>cleanUp</b>(<i></i>) |
|
166 <p> |
|
167 Uninstall the old eric files. |
|
168 </p> |
|
169 <div align="right"><a href="#top">Up</a></div> |
|
170 <hr /><hr /> |
|
171 <a NAME="cleanUpLinuxSpecifics" ID="cleanUpLinuxSpecifics"></a> |
|
172 <h2>cleanUpLinuxSpecifics</h2> |
|
173 <b>cleanUpLinuxSpecifics</b>(<i></i>) |
|
174 <p> |
|
175 Clean up Linux specific files. |
|
176 </p> |
|
177 <div align="right"><a href="#top">Up</a></div> |
|
178 <hr /><hr /> |
|
179 <a NAME="cleanUpMacAppBundle" ID="cleanUpMacAppBundle"></a> |
|
180 <h2>cleanUpMacAppBundle</h2> |
|
181 <b>cleanUpMacAppBundle</b>(<i></i>) |
|
182 <p> |
|
183 Uninstall the macOS application bundle. |
|
184 </p> |
|
185 <div align="right"><a href="#top">Up</a></div> |
|
186 <hr /><hr /> |
|
187 <a NAME="cleanUpWindowsLinks" ID="cleanUpWindowsLinks"></a> |
|
188 <h2>cleanUpWindowsLinks</h2> |
|
189 <b>cleanUpWindowsLinks</b>(<i></i>) |
|
190 <p> |
|
191 Clean up the Desktop and Start Menu entries for Windows. |
|
192 </p> |
|
193 <div align="right"><a href="#top">Up</a></div> |
|
194 <hr /><hr /> |
|
195 <a NAME="cleanupSource" ID="cleanupSource"></a> |
|
196 <h2>cleanupSource</h2> |
|
197 <b>cleanupSource</b>(<i>dirName</i>) |
|
198 <p> |
|
199 Cleanup the sources directory to get rid of leftover files |
|
200 and directories. |
|
201 </p><dl> |
|
202 <dt><i>dirName</i></dt> |
|
203 <dd> |
|
204 name of the directory to prune (string) |
|
205 </dd> |
|
206 </dl> |
|
207 <div align="right"><a href="#top">Up</a></div> |
|
208 <hr /><hr /> |
|
209 <a NAME="compileUiFiles" ID="compileUiFiles"></a> |
|
210 <h2>compileUiFiles</h2> |
|
211 <b>compileUiFiles</b>(<i></i>) |
|
212 <p> |
|
213 Compile the .ui files to Python sources. |
|
214 </p> |
|
215 <div align="right"><a href="#top">Up</a></div> |
|
216 <hr /><hr /> |
|
217 <a NAME="copyAppStreamFile" ID="copyAppStreamFile"></a> |
|
218 <h2>copyAppStreamFile</h2> |
|
219 <b>copyAppStreamFile</b>(<i>src, dst, marker</i>) |
|
220 <p> |
|
221 Modify an appstream file and write it to its destination. |
|
222 </p><dl> |
|
223 <dt><i>src</i></dt> |
|
224 <dd> |
|
225 source file name (string) |
|
226 </dd><dt><i>dst</i></dt> |
|
227 <dd> |
|
228 destination file name (string) |
|
229 </dd><dt><i>marker</i></dt> |
|
230 <dd> |
|
231 marker to be used (string) |
|
232 </dd> |
|
233 </dl> |
|
234 <div align="right"><a href="#top">Up</a></div> |
|
235 <hr /><hr /> |
|
236 <a NAME="copyDesktopFile" ID="copyDesktopFile"></a> |
|
237 <h2>copyDesktopFile</h2> |
|
238 <b>copyDesktopFile</b>(<i>src, dst, marker</i>) |
|
239 <p> |
|
240 Modify a desktop file and write it to its destination. |
|
241 </p><dl> |
|
242 <dt><i>src</i></dt> |
|
243 <dd> |
|
244 source file name (string) |
|
245 </dd><dt><i>dst</i></dt> |
|
246 <dd> |
|
247 destination file name (string) |
|
248 </dd><dt><i>marker</i></dt> |
|
249 <dd> |
|
250 marker to be used (string) |
|
251 </dd> |
|
252 </dl> |
|
253 <div align="right"><a href="#top">Up</a></div> |
|
254 <hr /><hr /> |
|
255 <a NAME="copyToFile" ID="copyToFile"></a> |
|
256 <h2>copyToFile</h2> |
|
257 <b>copyToFile</b>(<i>name, text</i>) |
|
258 <p> |
|
259 Copy a string to a file. |
|
260 </p><dl> |
|
261 <dt><i>name</i></dt> |
|
262 <dd> |
|
263 the name of the file. |
|
264 </dd><dt><i>text</i></dt> |
|
265 <dd> |
|
266 the contents to copy to the file. |
|
267 </dd> |
|
268 </dl> |
|
269 <div align="right"><a href="#top">Up</a></div> |
|
270 <hr /><hr /> |
|
271 <a NAME="copyTree" ID="copyTree"></a> |
|
272 <h2>copyTree</h2> |
|
273 <b>copyTree</b>(<i>src, dst, filters, excludeDirs=None, excludePatterns=None</i>) |
|
274 <p> |
|
275 Copy Python, translation, documentation, wizards configuration, |
|
276 designer template files and DTDs of a directory tree. |
|
277 </p><dl> |
|
278 <dt><i>src</i></dt> |
|
279 <dd> |
|
280 name of the source directory |
|
281 </dd><dt><i>dst</i></dt> |
|
282 <dd> |
|
283 name of the destination directory |
|
284 </dd><dt><i>filters</i></dt> |
|
285 <dd> |
|
286 list of filter pattern determining the files to be copied |
|
287 </dd><dt><i>excludeDirs</i></dt> |
|
288 <dd> |
|
289 list of (sub)directories to exclude from copying |
|
290 </dd><dt><i>excludePatterns=</i></dt> |
|
291 <dd> |
|
292 list of filter pattern determining the files to |
|
293 be skipped |
|
294 </dd> |
|
295 </dl> |
|
296 <div align="right"><a href="#top">Up</a></div> |
|
297 <hr /><hr /> |
|
298 <a NAME="createConfig" ID="createConfig"></a> |
|
299 <h2>createConfig</h2> |
|
300 <b>createConfig</b>(<i></i>) |
|
301 <p> |
|
302 Create a config file with the respective config entries. |
|
303 </p> |
|
304 <div align="right"><a href="#top">Up</a></div> |
|
305 <hr /><hr /> |
|
306 <a NAME="createGlobalPluginsDir" ID="createGlobalPluginsDir"></a> |
|
307 <h2>createGlobalPluginsDir</h2> |
|
308 <b>createGlobalPluginsDir</b>(<i></i>) |
|
309 <p> |
|
310 Create the global plugins directory, if it doesn't exist. |
|
311 </p> |
|
312 <div align="right"><a href="#top">Up</a></div> |
|
313 <hr /><hr /> |
|
314 <a NAME="createInstallConfig" ID="createInstallConfig"></a> |
|
315 <h2>createInstallConfig</h2> |
|
316 <b>createInstallConfig</b>(<i></i>) |
|
317 <p> |
|
318 Create the installation config dictionary. |
|
319 </p> |
|
320 <div align="right"><a href="#top">Up</a></div> |
|
321 <hr /><hr /> |
|
322 <a NAME="createLinuxSpecifics" ID="createLinuxSpecifics"></a> |
|
323 <h2>createLinuxSpecifics</h2> |
|
324 <b>createLinuxSpecifics</b>(<i></i>) |
|
325 <p> |
|
326 Install Linux specific files. |
|
327 </p> |
|
328 <div align="right"><a href="#top">Up</a></div> |
|
329 <hr /><hr /> |
|
330 <a NAME="createMacAppBundle" ID="createMacAppBundle"></a> |
|
331 <h2>createMacAppBundle</h2> |
|
332 <b>createMacAppBundle</b>(<i>pydir</i>) |
|
333 <p> |
|
334 Create a Mac application bundle. |
|
335 </p><dl> |
|
336 <dt><i>pydir</i> (str)</dt> |
|
337 <dd> |
|
338 the name of the directory where the Python script will |
|
339 eventually be installed |
|
340 </dd> |
|
341 </dl> |
|
342 <div align="right"><a href="#top">Up</a></div> |
|
343 <hr /><hr /> |
|
344 <a NAME="createPyWrapper" ID="createPyWrapper"></a> |
|
345 <h2>createPyWrapper</h2> |
|
346 <b>createPyWrapper</b>(<i>pydir, wfile, saveDir, isGuiScript=True</i>) |
|
347 <p> |
|
348 Create an executable wrapper for a Python script. |
|
349 </p><dl> |
|
350 <dt><i>pydir</i></dt> |
|
351 <dd> |
|
352 the name of the directory where the Python script will |
|
353 eventually be installed (string) |
|
354 </dd><dt><i>wfile</i></dt> |
|
355 <dd> |
|
356 the basename of the wrapper (string) |
|
357 </dd><dt><i>saveDir</i></dt> |
|
358 <dd> |
|
359 directory to save the file into (string) |
|
360 </dd><dt><i>isGuiScript</i></dt> |
|
361 <dd> |
|
362 flag indicating a wrapper script for a GUI |
|
363 application (boolean) |
|
364 </dd> |
|
365 </dl><dl> |
|
366 <dt>Returns:</dt> |
|
367 <dd> |
|
368 the platform specific name of the wrapper (string) |
|
369 </dd> |
|
370 </dl> |
|
371 <div align="right"><a href="#top">Up</a></div> |
|
372 <hr /><hr /> |
|
373 <a NAME="createWindowsLinks" ID="createWindowsLinks"></a> |
|
374 <h2>createWindowsLinks</h2> |
|
375 <b>createWindowsLinks</b>(<i></i>) |
|
376 <p> |
|
377 Create Desktop and Start Menu links. |
|
378 </p> |
|
379 <div align="right"><a href="#top">Up</a></div> |
|
380 <hr /><hr /> |
|
381 <a NAME="createWindowsShortcut" ID="createWindowsShortcut"></a> |
|
382 <h2>createWindowsShortcut</h2> |
|
383 <b>createWindowsShortcut</b>(<i>linkPath, targetPath, iconPath</i>) |
|
384 <p> |
|
385 Create Windows shortcut. |
|
386 </p><dl> |
|
387 <dt><i>linkPath</i> (str)</dt> |
|
388 <dd> |
|
389 path of the shortcut file |
|
390 </dd><dt><i>targetPath</i> (str)</dt> |
|
391 <dd> |
|
392 path the shortcut shall point to |
|
393 </dd><dt><i>iconPath</i> (str)</dt> |
|
394 <dd> |
|
395 path of the icon file |
|
396 </dd> |
|
397 </dl> |
|
398 <div align="right"><a href="#top">Up</a></div> |
|
399 <hr /><hr /> |
|
400 <a NAME="determinePyQtVariant" ID="determinePyQtVariant"></a> |
|
401 <h2>determinePyQtVariant</h2> |
|
402 <b>determinePyQtVariant</b>(<i></i>) |
|
403 <p> |
|
404 Module function to determine the PyQt variant to be used. |
|
405 </p> |
|
406 <div align="right"><a href="#top">Up</a></div> |
|
407 <hr /><hr /> |
|
408 <a NAME="doDependancyChecks" ID="doDependancyChecks"></a> |
|
409 <h2>doDependancyChecks</h2> |
|
410 <b>doDependancyChecks</b>(<i></i>) |
|
411 <p> |
|
412 Perform some dependency checks. |
|
413 </p> |
|
414 <div align="right"><a href="#top">Up</a></div> |
|
415 <hr /><hr /> |
|
416 <a NAME="exit" ID="exit"></a> |
|
417 <h2>exit</h2> |
|
418 <b>exit</b>(<i>rcode=0</i>) |
|
419 <p> |
|
420 Exit the install script. |
|
421 </p><dl> |
|
422 <dt><i>rcode</i></dt> |
|
423 <dd> |
|
424 result code to report back (integer) |
|
425 </dd> |
|
426 </dl> |
|
427 <div align="right"><a href="#top">Up</a></div> |
|
428 <hr /><hr /> |
|
429 <a NAME="getWinregEntry" ID="getWinregEntry"></a> |
|
430 <h2>getWinregEntry</h2> |
|
431 <b>getWinregEntry</b>(<i>name, path</i>) |
|
432 <p> |
|
433 Function to get an entry from the Windows Registry. |
|
434 </p><dl> |
|
435 <dt><i>name</i> (str)</dt> |
|
436 <dd> |
|
437 variable name |
|
438 </dd><dt><i>path</i> (str)</dt> |
|
439 <dd> |
|
440 registry path of the variable |
|
441 </dd> |
|
442 </dl><dl> |
|
443 <dt>Returns:</dt> |
|
444 <dd> |
|
445 value of requested registry variable |
|
446 </dd> |
|
447 </dl><dl> |
|
448 <dt>Return Type:</dt> |
|
449 <dd> |
|
450 any |
|
451 </dd> |
|
452 </dl> |
|
453 <div align="right"><a href="#top">Up</a></div> |
|
454 <hr /><hr /> |
|
455 <a NAME="initGlobals" ID="initGlobals"></a> |
|
456 <h2>initGlobals</h2> |
|
457 <b>initGlobals</b>(<i></i>) |
|
458 <p> |
|
459 Module function to set the values of globals that need more than a |
|
460 simple assignment. |
|
461 </p> |
|
462 <div align="right"><a href="#top">Up</a></div> |
|
463 <hr /><hr /> |
|
464 <a NAME="installEric" ID="installEric"></a> |
|
465 <h2>installEric</h2> |
|
466 <b>installEric</b>(<i></i>) |
|
467 <p> |
|
468 Actually perform the installation steps. |
|
469 </p><dl> |
|
470 <dt>Returns:</dt> |
|
471 <dd> |
|
472 result code (integer) |
|
473 </dd> |
|
474 </dl> |
|
475 <div align="right"><a href="#top">Up</a></div> |
|
476 <hr /><hr /> |
|
477 <a NAME="main" ID="main"></a> |
|
478 <h2>main</h2> |
|
479 <b>main</b>(<i>argv</i>) |
|
480 <p> |
|
481 The main function of the script. |
|
482 </p><dl> |
|
483 <dt><i>argv</i> (list of str)</dt> |
|
484 <dd> |
|
485 list of command line arguments |
|
486 </dd> |
|
487 </dl> |
|
488 <div align="right"><a href="#top">Up</a></div> |
|
489 <hr /><hr /> |
|
490 <a NAME="pipInstall" ID="pipInstall"></a> |
|
491 <h2>pipInstall</h2> |
|
492 <b>pipInstall</b>(<i>packageName, message</i>) |
|
493 <p> |
|
494 Install the given package via pip. |
|
495 </p><dl> |
|
496 <dt><i>packageName</i> (str)</dt> |
|
497 <dd> |
|
498 name of the package to be installed |
|
499 </dd><dt><i>message</i> (str)</dt> |
|
500 <dd> |
|
501 message to be shown to the user |
|
502 </dd> |
|
503 </dl><dl> |
|
504 <dt>Returns:</dt> |
|
505 <dd> |
|
506 flag indicating a successful installation |
|
507 </dd> |
|
508 </dl><dl> |
|
509 <dt>Return Type:</dt> |
|
510 <dd> |
|
511 bool |
|
512 </dd> |
|
513 </dl> |
|
514 <div align="right"><a href="#top">Up</a></div> |
|
515 <hr /><hr /> |
|
516 <a NAME="prepareInfoFile" ID="prepareInfoFile"></a> |
|
517 <h2>prepareInfoFile</h2> |
|
518 <b>prepareInfoFile</b>(<i>fileName</i>) |
|
519 <p> |
|
520 Function to prepare an Info.py file when installing from source. |
|
521 </p><dl> |
|
522 <dt><i>fileName</i></dt> |
|
523 <dd> |
|
524 name of the Python file containing the info (string) |
|
525 </dd> |
|
526 </dl> |
|
527 <div align="right"><a href="#top">Up</a></div> |
|
528 <hr /><hr /> |
|
529 <a NAME="shutilCopy" ID="shutilCopy"></a> |
|
530 <h2>shutilCopy</h2> |
|
531 <b>shutilCopy</b>(<i>src, dst, perm=0o644</i>) |
|
532 <p> |
|
533 Wrapper function around shutil.copy() to ensure the permissions. |
|
534 </p><dl> |
|
535 <dt><i>src</i></dt> |
|
536 <dd> |
|
537 source file name (string) |
|
538 </dd><dt><i>dst</i></dt> |
|
539 <dd> |
|
540 destination file name or directory name (string) |
|
541 </dd><dt><i>perm=</i></dt> |
|
542 <dd> |
|
543 permissions to be set (integer) |
|
544 </dd> |
|
545 </dl> |
|
546 <div align="right"><a href="#top">Up</a></div> |
|
547 <hr /><hr /> |
|
548 <a NAME="usage" ID="usage"></a> |
|
549 <h2>usage</h2> |
|
550 <b>usage</b>(<i>rcode=2</i>) |
|
551 <p> |
|
552 Display a usage message and exit. |
|
553 </p><dl> |
|
554 <dt><i>rcode</i></dt> |
|
555 <dd> |
|
556 the return code passed back to the calling process. |
|
557 </dd> |
|
558 </dl> |
|
559 <div align="right"><a href="#top">Up</a></div> |
|
560 <hr /><hr /> |
|
561 <a NAME="windowsDesktopEntries" ID="windowsDesktopEntries"></a> |
|
562 <h2>windowsDesktopEntries</h2> |
|
563 <b>windowsDesktopEntries</b>(<i></i>) |
|
564 <p> |
|
565 Function to generate data for the Windows Desktop links. |
|
566 </p><dl> |
|
567 <dt>Returns:</dt> |
|
568 <dd> |
|
569 list of tuples containing the desktop link name, |
|
570 the link target and the icon target |
|
571 </dd> |
|
572 </dl><dl> |
|
573 <dt>Return Type:</dt> |
|
574 <dd> |
|
575 list of tuples of (str, str, str) |
|
576 </dd> |
|
577 </dl> |
|
578 <div align="right"><a href="#top">Up</a></div> |
|
579 <hr /><hr /> |
|
580 <a NAME="windowsDesktopNames" ID="windowsDesktopNames"></a> |
|
581 <h2>windowsDesktopNames</h2> |
|
582 <b>windowsDesktopNames</b>(<i></i>) |
|
583 <p> |
|
584 Function to generate the link names for the Windows Desktop. |
|
585 </p><dl> |
|
586 <dt>Returns:</dt> |
|
587 <dd> |
|
588 list of desktop link names |
|
589 </dd> |
|
590 </dl><dl> |
|
591 <dt>Return Type:</dt> |
|
592 <dd> |
|
593 list of str |
|
594 </dd> |
|
595 </dl> |
|
596 <div align="right"><a href="#top">Up</a></div> |
|
597 <hr /><hr /> |
|
598 <a NAME="windowsProgramsEntry" ID="windowsProgramsEntry"></a> |
|
599 <h2>windowsProgramsEntry</h2> |
|
600 <b>windowsProgramsEntry</b>(<i></i>) |
|
601 <p> |
|
602 Function to generate the name of the Start Menu top entry. |
|
603 </p><dl> |
|
604 <dt>Returns:</dt> |
|
605 <dd> |
|
606 name of the Start Menu top entry |
|
607 </dd> |
|
608 </dl><dl> |
|
609 <dt>Return Type:</dt> |
|
610 <dd> |
|
611 str |
|
612 </dd> |
|
613 </dl> |
|
614 <div align="right"><a href="#top">Up</a></div> |
|
615 <hr /><hr /> |
|
616 <a NAME="wrapperNames" ID="wrapperNames"></a> |
|
617 <h2>wrapperNames</h2> |
|
618 <b>wrapperNames</b>(<i>dname, wfile</i>) |
|
619 <p> |
|
620 Create the platform specific names for the wrapper script. |
|
621 </p><dl> |
|
622 <dt><i>dname</i></dt> |
|
623 <dd> |
|
624 name of the directory to place the wrapper into |
|
625 </dd><dt><i>wfile</i></dt> |
|
626 <dd> |
|
627 basename (without extension) of the wrapper script |
|
628 </dd> |
|
629 </dl><dl> |
|
630 <dt>Returns:</dt> |
|
631 <dd> |
|
632 the names of the wrapper scripts |
|
633 </dd> |
|
634 </dl> |
|
635 <div align="right"><a href="#top">Up</a></div> |
|
636 <hr /> |
|
637 </body></html> |