module win_installer.win_patch

Inheritance diagram of pymyinstall.win_installer.win_patch

Short summary

module pymyinstall.win_installer.win_patch

Patch the distribution to make it portable

source on GitHub

Classes

class

truncated documentation

ShebangException

exception raised when the shebang is not correct

Functions

function

truncated documentation

win_patch_paths

Paths are absolute when they are installed in all scripts .exe, we replaced them either by an empty string (path_to_python == "") …

Documentation

Patch the distribution to make it portable

source on GitHub

exception pymyinstall.win_installer.win_patch.ShebangException

Bases: RuntimeError

exception raised when the shebang is not correct

source on GitHub

pymyinstall.win_installer.win_patch.win_patch_paths(folder, path_to_python='', fLOG=<built-in function print>)

Paths are absolute when they are installed in all scripts .exe, we replaced them either by an empty string (path_to_python == "") or the current folder.

Parameters:
  • folder – folder where to find the executable

  • path_to_python – new python path (replace by)

  • fLOG – logging function

Returns:

list of tuple (‘exe or py’, ‘modified file’)

See Create a portable Python with Pip on Windows The first three parameters can be environment variables. They will be replaced by their values.

source on GitHub