Tue, 10 Dec 2024 15:48:56 +0100
Updated copyright for 2025.
<!DOCTYPE html> <html><head> <title>Plugin_Packager_PyInstaller.PluginPyInstaller</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>Plugin_Packager_PyInstaller.PluginPyInstaller</h1> <p> Module implementing the PyInstaller interface plug-in. </p> <h3>Global Attributes</h3> <table> <tr><td>author</td></tr><tr><td>autoactivate</td></tr><tr><td>className</td></tr><tr><td>deactivateable</td></tr><tr><td>error</td></tr><tr><td>exePy3</td></tr><tr><td>longDescription</td></tr><tr><td>name</td></tr><tr><td>needsRestart</td></tr><tr><td>packageName</td></tr><tr><td>pyqtApi</td></tr><tr><td>shortDescription</td></tr><tr><td>version</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#PyInstallerPlugin">PyInstallerPlugin</a></td> <td>Class implementing the PyInstaller interface plug-in.</td> </tr> </table> <h3>Functions</h3> <table> <tr> <td><a href="#_checkProgram">_checkProgram</a></td> <td>Restricted function to check the availability of pyinstaller.</td> </tr> <tr> <td><a href="#_findExecutable">_findExecutable</a></td> <td>Restricted function to determine the names of the executables.</td> </tr> <tr> <td><a href="#exeDisplayDataList">exeDisplayDataList</a></td> <td>Module function to support the display of some executable info.</td> </tr> <tr> <td><a href="#getExePath">getExePath</a></td> <td></td> </tr> <tr> <td><a href="#installDependencies">installDependencies</a></td> <td>Function to install dependencies of this plug-in.</td> </tr> </table> <hr /> <hr /> <a NAME="PyInstallerPlugin" ID="PyInstallerPlugin"></a> <h2>PyInstallerPlugin</h2> <p> Class implementing the PyInstaller interface plug-in. </p> <h3>Derived from</h3> QObject <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#PyInstallerPlugin.__init__">PyInstallerPlugin</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#PyInstallerPlugin.__initialize">__initialize</a></td> <td>Private slot to (re)initialize the plug-in.</td> </tr> <tr> <td><a href="#PyInstallerPlugin.__loadTranslator">__loadTranslator</a></td> <td>Private method to load the translation file.</td> </tr> <tr> <td><a href="#PyInstallerPlugin.__projectShowMenu">__projectShowMenu</a></td> <td>Private slot called, when the the project menu or a submenu is about to be shown.</td> </tr> <tr> <td><a href="#PyInstallerPlugin.__pyiMakeSpec">__pyiMakeSpec</a></td> <td>Private slot to execute the pyi-makespec command for the current project to generate a spec file to be used by pyinstaller.</td> </tr> <tr> <td><a href="#PyInstallerPlugin.__pyinstaller">__pyinstaller</a></td> <td>Private slot to execute the pyinstaller command for the current project.</td> </tr> <tr> <td><a href="#PyInstallerPlugin.__pyinstallerCleanup">__pyinstallerCleanup</a></td> <td>Private slot to remove the directories created by pyinstaller.</td> </tr> <tr> <td><a href="#PyInstallerPlugin.activate">activate</a></td> <td>Public method to activate this plug-in.</td> </tr> <tr> <td><a href="#PyInstallerPlugin.deactivate">deactivate</a></td> <td>Public method to deactivate this plug-in.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="PyInstallerPlugin.__init__" ID="PyInstallerPlugin.__init__"></a> <h4>PyInstallerPlugin (Constructor)</h4> <b>PyInstallerPlugin</b>(<i>ui</i>) <p> Constructor </p> <dl> <dt><i>ui</i> (UI.UserInterface)</dt> <dd> reference to the user interface object </dd> </dl> <a NAME="PyInstallerPlugin.__initialize" ID="PyInstallerPlugin.__initialize"></a> <h4>PyInstallerPlugin.__initialize</h4> <b>__initialize</b>(<i></i>) <p> Private slot to (re)initialize the plug-in. </p> <a NAME="PyInstallerPlugin.__loadTranslator" ID="PyInstallerPlugin.__loadTranslator"></a> <h4>PyInstallerPlugin.__loadTranslator</h4> <b>__loadTranslator</b>(<i></i>) <p> Private method to load the translation file. </p> <a NAME="PyInstallerPlugin.__projectShowMenu" ID="PyInstallerPlugin.__projectShowMenu"></a> <h4>PyInstallerPlugin.__projectShowMenu</h4> <b>__projectShowMenu</b>(<i>menuName, menu</i>) <p> Private slot called, when the the project menu or a submenu is about to be shown. </p> <dl> <dt><i>menuName</i> (str)</dt> <dd> name of the menu to be shown </dd> <dt><i>menu</i> (QMenu)</dt> <dd> reference to the menu </dd> </dl> <a NAME="PyInstallerPlugin.__pyiMakeSpec" ID="PyInstallerPlugin.__pyiMakeSpec"></a> <h4>PyInstallerPlugin.__pyiMakeSpec</h4> <b>__pyiMakeSpec</b>(<i></i>) <p> Private slot to execute the pyi-makespec command for the current project to generate a spec file to be used by pyinstaller. </p> <a NAME="PyInstallerPlugin.__pyinstaller" ID="PyInstallerPlugin.__pyinstaller"></a> <h4>PyInstallerPlugin.__pyinstaller</h4> <b>__pyinstaller</b>(<i></i>) <p> Private slot to execute the pyinstaller command for the current project. </p> <a NAME="PyInstallerPlugin.__pyinstallerCleanup" ID="PyInstallerPlugin.__pyinstallerCleanup"></a> <h4>PyInstallerPlugin.__pyinstallerCleanup</h4> <b>__pyinstallerCleanup</b>(<i></i>) <p> Private slot to remove the directories created by pyinstaller. </p> <a NAME="PyInstallerPlugin.activate" ID="PyInstallerPlugin.activate"></a> <h4>PyInstallerPlugin.activate</h4> <b>activate</b>(<i></i>) <p> Public method to activate this plug-in. </p> <dl> <dt>Return:</dt> <dd> tuple of None and activation status </dd> </dl> <dl> <dt>Return Type:</dt> <dd> tuple of (None, bool) </dd> </dl> <a NAME="PyInstallerPlugin.deactivate" ID="PyInstallerPlugin.deactivate"></a> <h4>PyInstallerPlugin.deactivate</h4> <b>deactivate</b>(<i></i>) <p> Public method to deactivate this plug-in. </p> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="_checkProgram" ID="_checkProgram"></a> <h2>_checkProgram</h2> <b>_checkProgram</b>(<i></i>) <p> Restricted function to check the availability of pyinstaller. </p> <dl> <dt>Return:</dt> <dd> flag indicating availability </dd> </dl> <dl> <dt>Return Type:</dt> <dd> bool </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="_findExecutable" ID="_findExecutable"></a> <h2>_findExecutable</h2> <b>_findExecutable</b>(<i>majorVersion</i>) <p> Restricted function to determine the names of the executables. </p> <dl> <dt><i>majorVersion</i> (int)</dt> <dd> major python version </dd> </dl> <dl> <dt>Return:</dt> <dd> names of the executables </dd> </dl> <dl> <dt>Return Type:</dt> <dd> list of str </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="exeDisplayDataList" ID="exeDisplayDataList"></a> <h2>exeDisplayDataList</h2> <b>exeDisplayDataList</b>(<i></i>) <p> Module function to support the display of some executable info. </p> <dl> <dt>Return:</dt> <dd> list of dictionaries containing the data to query the presence of the executable </dd> </dl> <dl> <dt>Return Type:</dt> <dd> list of dict </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="getExePath" ID="getExePath"></a> <h2>getExePath</h2> <b>getExePath</b>(<i>branch, access, versionStr</i>) <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="installDependencies" ID="installDependencies"></a> <h2>installDependencies</h2> <b>installDependencies</b>(<i>pipInstall</i>) <p> Function to install dependencies of this plug-in. </p> <dl> <dt><i>pipInstall</i> (function)</dt> <dd> function to be called with a list of package names. </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>