module win_installer.win_setup_main_checkings

Short summary

module pymyinstall.win_installer.win_setup_main_checkings

Run some checkings about the distribution

Functions

function

truncated documentation

distribution_checkings

checks a distribution was properly executed

import_every_module

import every module in module_list assuming they are defined by ModuleInstall or a string

Documentation

Run some checkings about the distribution

New in version 1.1.

source on GitHub

pymyinstall.win_installer.win_setup_main_checkings.distribution_checkings(python_path, tools_path, fLOG=<built-in function print>, skip_import=False, module_list=None)

checks a distribution was properly executed

Parameters:
  • python_path – path for python

  • tools_path – path for tools

  • fLOG – logging function

  • skip_import – skip the validation of every installed module (for unit test purposes)

  • module_list – module list to check

The function raises WinInstallDistributionError if an issue is detected.

If python_path is None, it is replace by os.path.dirname(sys.executable).

New in version 1.1.

source on GitHub

pymyinstall.win_installer.win_setup_main_checkings.import_every_module(python_path, module_list, only_installed=True, fLOG=<built-in function print>, start=0, end=-1)

import every module in module_list assuming they are defined by ModuleInstall or a string

Parameters:
  • python_path – python path

  • module_list – module list, if None, consider the largest list

  • only_installed – True to check only installed module in the list, False to test them without checking they were installed

  • start – start the list at start

  • end – end the list at end or -1 for all

Returns:

list of tuple (success, failing modules, output, error)

source on GitHub