module win_installer.win_packages

Short summary

module pymyinstall.win_installer.win_packages

To install packages for a specific distribution.

Functions

function truncated documentation
_is_package_in_list determines of this package is the one for the given module_name
get_modules_version return a dictionary { module:version }
is_package_installed not very accurate but it should speed up the process
win_install_package_other_python Install a package for another Python distribution than the current one.
win_install_packages_other_python Install all packages for another Python distribution where package could be found in a folder

Documentation

To install packages for a specific distribution.

pymyinstall.win_installer.win_packages.get_modules_version(python_path)[source]

return a dictionary { module:version }

Parameters:python_path – path to python
Returns:dictionary
pymyinstall.win_installer.win_packages.is_package_installed(python_path, module_name)[source]

not very accurate but it should speed up the process

Parameters:
  • python_path – python path
  • module_name – module name (import name)
Returns:

boolean

pymyinstall.win_installer.win_packages.win_install_package_other_python(python_path, package, verbose=False, deps=True, fLOG=<built-in function print>)[source]

Install a package for another Python distribution than the current one.

Parameters:
  • python_path – location of python
  • package – location of the package (.tar.gz or .whl)
  • verbose – display more information
  • deps – take dependencies into account or not
  • fLOG – logging function
Returns:

operations (“pip”, module) if installed, empty if already installed

pymyinstall.win_installer.win_packages.win_install_packages_other_python(python_path, package_folder, verbose=False, module_list=None, fLOG=<built-in function print>)[source]

Install all packages for another Python distribution where package could be found in a folder

Parameters:
  • python_path – location of python
  • package_folder – location of the package (.tar.gz or .whl)
  • verbose – display more information
  • module_list – list of modules to install, if None, it tries to guess a good order to install downloaded packages
  • fLOG – logging function
Returns:

operations (“pip”, module) if installed, empty if already installed