.. _f-winhelper: module ``win_installer.win_helper`` =================================== Short summary +++++++++++++ module ``pymyinstall.win_installer.win_helper`` Helpers, inspired from `utils.py `_ :githublink:`%|py|6` Functions +++++++++ +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +==================================================================================================+=================================================================================================================================+ | :func:`create_shortcut ` | Create Windows shortcut (.lnk file) | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`decode_fs_string ` | Convert string from file system charset to unicode | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`do_script ` | Execute a script (get-pip typically) | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`exec_shell_cmd ` | Execute shell command (*args* is a list of arguments) in *path* | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_env ` | Return HKCU/HKLM environment variable name and value | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_gcc_version ` | Return version of the GCC compiler installed in *path* | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_julia_version ` | Return version of the Julia installed in *path* | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_python_infos ` | Return (version, architecture) for the Python distribution located in *path*. The version number is limited to MAJOR.MINOR, ... | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_python_long_version ` | Return long version (X.Y.Z) for the Python distribution located in *path* | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_r_version ` | Return version of the R installed in *path* | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_source_package_infos ` | Return a tuple (name, version) of the Python source package | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`patch_shebang_line ` | Remove absolute path to python.exe in shebang lines. | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`patch_sourcefile ` | Replace a string in a source file | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`patch_sourcelines ` | Replace the middle of lines between in_line_start and endline | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`python_query ` | Execute Python command using the Python interpreter located in *path* | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`register ` | Register a Python distribution in Windows registry | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :func:`set_env ` | Set HKCU/HKLM environment variables | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pymyinstall.win_installer.win_helper :members: :special-members: __init__ :show-inheritance: