module win_installer.win_innosetup_helper

Inheritance diagram of pymyinstall.win_installer.win_innosetup_helper

Short summary

module pymyinstall.win_installer.win_innosetup_helper

Functions to prepare a setup on Windows, use InnoSetup

Classes

class truncated documentation
InnoSetupException Exception happening with InnoSetup

Functions

function truncated documentation
find_innosetup find InnoSetup executable
inno_install_kernels install kernels for IPython notebooks
innosetup_replacements run InnotSetup for a script
run_innosetup run InnotSetup for a script

Documentation

Functions to prepare a setup on Windows, use InnoSetup

exception pymyinstall.win_installer.win_innosetup_helper.InnoSetupException[source]

Bases: Exception

Exception happening with InnoSetup

pymyinstall.win_installer.win_innosetup_helper.find_innosetup()[source]

find InnoSetup executable

Returns:executable
pymyinstall.win_installer.win_innosetup_helper.inno_install_kernels(root, suffix)[source]

install kernels for IPython notebooks

Parameters:
  • root – root folder
  • suffix – suffix
pymyinstall.win_installer.win_innosetup_helper.innosetup_replacements(script=None, innosetup=None, replacements=None, log_script=None, temp_folder='.', fLOG=<built-in function print>)[source]

run InnotSetup for a script

Parameters:
  • script – script to run, if None, use the default script assuming you want to build a Python Distribution
  • innosetup – location of InnoSetup (if None, use default location)
  • replacements – replace to make in the script (dictionary)
  • log_script – output logs to this file
  • temp_folder – where to copy the modified script
  • fLOG – logging function
Returns:

new script

pymyinstall.win_installer.win_innosetup_helper.run_innosetup(new_script, innosetup=None, log_script=None, temp_folder='.', fLOG=<built-in function print>)[source]

run InnotSetup for a script

Parameters:
  • new_script – script to run
  • innosetup – location of InnoSetup (if None, use default location)
  • log_script – output logs to this file
  • temp_folder – where to copy the modified script
  • fLOG – logging function
Returns:

output