module installhelper.install_custom

Short summary

module pymyinstall.installhelper.install_custom

Various functions to install some application such as pandoc.

Functions

function truncated documentation
download_file download a file from a url, the function does not download the file again if outfile already exists
download_from_sourceforge download a file from a url using redirection, the function does not download the file again if outfile already ...

Documentation

Various functions to install some application such as pandoc.

pymyinstall.installhelper.install_custom.download_file(url, outfile)[source]

download a file from a url, the function does not download the file again if outfile already exists

Parameters:
  • url – url
  • outfile – outfile
Returns:

outfile

pymyinstall.installhelper.install_custom.download_from_sourceforge(url, outfile, fLOG=<built-in function print>, temp_folder='.')[source]

download a file from a url using redirection, the function does not download the file again if outfile already exists

Parameters:
  • url – url
  • outfile – outfile
  • fLOG – logging function
  • temp_folder – only used if installation of module requests is needed
Returns:

outfile

The function will install module requests if not present.