module packaged.automate_install

Short summary

module pymyinstall.packaged.automate_install

Install or update all packages.

Functions

function truncated documentation
_build_reverse_index builds a reverse index of the module,
find_module_install checks if there are specific instructions to run before installing module name, on Windows, some modules requires ...
install_all install modules in list_module if None, this list will be returned by :func:
reorder_module_list reorder a list of modules to install, a module at position p should not depend not module at position p+1
update_all update modules in list_module if None, this list will be returned by :func:

Documentation

Install or update all packages.

pymyinstall.packaged.automate_install.find_module_install(name)[source]

checks if there are specific instructions to run before installing module name, on Windows, some modules requires compilation, if not uses default option with pip

Parameters:name – module name, the name can include a specific version number with ‘==’
Returns:ModuleInstall
pymyinstall.packaged.automate_install.install_all(temp_folder='.', fLOG=<built-in function print>, verbose=True, list_module=None, reorder=True, skip_module=None, up_pip=True)[source]

install modules in list_module if None, this list will be returned by ensae_fullset, the function starts by updating pip.

Parameters:
  • temp_folder – temporary folder
  • verbose – more display
  • list_module – None or of list of str or ModuleInstall
  • fLOG – logging function
  • reorder – reorder the modules to update first modules with less dependencies (as much as as possible)
  • skip_module – module to skip (list of str)
  • up_pip – upgrade pip
pymyinstall.packaged.automate_install.reorder_module_list(list_module)[source]

reorder a list of modules to install, a module at position p should not depend not module at position p+1

Parameters:list_module – list of module (ModuleInstall)
Returns:list of modules

The function uses modules stored in pyminstall.packaged.packaged_config, it does not go to pypi. If a module was not registered, it will be placed at the end in the order it was given to this function.

pymyinstall.packaged.automate_install.update_all(temp_folder='.', fLOG=<built-in function print>, verbose=True, list_module=None, reorder=True, skip_module=None)[source]

update modules in list_module if None, this list will be returned by ensae_fullset, the function starts by updating pip.

Parameters:
  • temp_folder – temporary folder
  • verbose – more display
  • list_module – None or of list of str or ModuleInstall
  • fLOG – logging function
  • reorder – reorder the modules to update first modules with less dependencies (as much as as possible)
  • skip_module – module to skip (list of str)