module installcustom.install_custom

Inheritance diagram of pymyinstall.installcustom.install_custom

Short summary

module pymyinstall.installcustom.install_custom

Various functions to install some application such as pandoc.

source on GitHub

Classes

class

truncated documentation

DownloadException

Cannot download.

Functions

function

truncated documentation

download_file

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

download_from_sourceforge

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

where_in_path

Looks for a file in current directory and in every path in PATH.

Documentation

Various functions to install some application such as pandoc.

source on GitHub

exception pymyinstall.installcustom.install_custom.DownloadException

Bases: RuntimeError

Cannot download.

source on GitHub

pymyinstall.installcustom.install_custom.download_file(url, outfile, fLOG=None)

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

Parameters:
  • url – url

  • outfile – outfile

  • fLOG – logging function

Returns:

outfile

source on GitHub

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

Downloads 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.

source on GitHub

pymyinstall.installcustom.install_custom.where_in_path(name)

Looks for a file in current directory and in every path in PATH.

Parameters:

name – name of the file to look for

Returns:

None if not found, the absolute filename otherwise

source on GitHub