module win_installer.win_packages

Short summary

module pymyinstall.win_installer.win_packages

To install packages for a specific distribution.

source on GitHub

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.

source on GitHub

pymyinstall.win_installer.win_packages._is_package_in_list(module_name, list_packages, no_wheel=False)

determines of this package is the one for the given module_name

Parameters:
  • list_packages – list of packages names (list of wheel)

  • module_name – module name

  • no_wheel – skip wheels

Returns:

package name

source on GitHub

pymyinstall.win_installer.win_packages.get_modules_version(python_path)

return a dictionary { module:version }

Parameters:

python_path – path to python

Returns:

dictionary

source on GitHub

pymyinstall.win_installer.win_packages.is_package_installed(python_path, module_name, installed_packages=None)

not very accurate but it should speed up the process

Parameters:
  • python_path – python path

  • module_name – module name (import name)

  • installed_packages – list of installed packages (can be None)

Returns:

boolean

source on GitHub

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

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

Parameters:
  • python_path – location of python

  • package – location of the package (.tar.gz, .whl, .tgz, .bz2)

  • verbose – display more information

  • deps – take dependencies into account or not

  • fLOG – logging function

Returns:

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

Changed in version 1.1: deps=False is the default for module zipline

source on GitHub

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

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, .whl, .bz2, .tgz)

  • 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

source on GitHub