module win_installer.win_setup_main_helper

Short summary

module pymyinstall.win_installer.win_setup_main_helper

Helpers for function win_python_setup()

source on GitHub

Functions

function

truncated documentation

copy_icons

copy all files from src to dest

create_links_tools

create links for the tools

dtnow

shortcut, return datetime.datetime.now()

win_download

The function downloads everything needed to prepare a setup.

win_download_notebooks

download notebooks and store them as documentation

win_install

Install setups

win_install_julia_step

does necessary steps to setup Julia

win_install_r_step

does necessary steps to setup R

Documentation

Helpers for function win_python_setup

source on GitHub

pymyinstall.win_installer.win_setup_main_helper.copy_icons(src, dest)

copy all files from src to dest

Parameters:
  • src – source

  • dest – destination

Returns:

operations

source on GitHub

create links for the tools

Parameters:
  • folder – where links will be stored

  • installed – dictionary { tool: exe file }

  • verbose – display more information

  • fLOG – logging function

Returns:

operations, list of tuple (“link”, link file)

source on GitHub

pymyinstall.win_installer.win_setup_main_helper.dtnow()

shortcut, return datetime.datetime.now()

source on GitHub

pymyinstall.win_installer.win_setup_main_helper.win_download(folder=None, module_list=None, verbose=False, fLOG=<built-in function print>, download_only=True, selection=None, source=None, embed=True)

The function downloads everything needed to prepare a setup.

Parameters:
  • folder – where to prepare the python version (the user must replace None)

  • module_list – list of module to install (see minimal_set = default options)

  • fLOG – logging function

  • download_only – only downloads (unused, True by default)

  • verbose – print more information

  • selection – selection of tools to install (dictionary { toolname: version or None})

  • source – source of python packages (see ModuleInstall)

  • embed – use embedded version (or custom one)

Returns:

list of completed operations

List of available tools:

  • scite

  • putty

  • mingw

  • SQLiteSpy

  • python

  • R

  • vs

  • julia

  • 7z

  • graphviz

  • tdm

  • jdk (java)

  • jenkins

  • git

  • miktex

  • inkscape

source on GitHub

pymyinstall.win_installer.win_setup_main_helper.win_download_notebooks(notebooks, folder, verbose=False, fLOG=<built-in function print>)

download notebooks and store them as documentation

Parameters:
  • notebooks – list of tuple (place, url)

  • folder – where to put them

  • verbose – verbose

  • fLOG – logging function

Returns:

list of operations

source on GitHub

pymyinstall.win_installer.win_setup_main_helper.win_install(folders, download_folder, verbose=False, fLOG=<built-in function print>, names=['Julia', 'Scite', '7z', 'TDM', 'MinGW', 'R', 'pandoc', 'Python', 'SQLiteSpy', 'Putty', 'Graphviz'], selection=None)

Install setups

Parameters:
  • folders – dictionary of folders, must contain key tools, python

  • download_folder – where the setup are

  • fLOG – logging function

  • verbose – print more information

  • names – name of subfolders to be created

  • selection – selection of tools to install

Returns:

list of completed operations, executable (to make shortcuts)

The function installs every setup which starts by one of the string in names and whose extension is .exe, .msi, .zip, .7z.

To install Python on Windows, see Using Python on Windows, and What’s coming for the Python 3.5 installer?

source on GitHub

pymyinstall.win_installer.win_setup_main_helper.win_install_julia_step(folders, verbose=False, fLOG=<built-in function print>)

does necessary steps to setup Julia

Parameters:
  • folders – installation folders

  • verbose – verbose

  • fLOG – logging function

Returns:

list of processed operations

source on GitHub

pymyinstall.win_installer.win_setup_main_helper.win_install_r_step(folders, verbose=False, fLOG=<built-in function print>)

does necessary steps to setup R

Parameters:
  • folders – installation folders

  • verbose – verbose

  • fLOG – logging function

Returns:

list of processed operations

source on GitHub