MCPcopy
hub / github.com/aws/aws-cli / pip_install_packages

Function pip_install_packages

scripts/install_deps.py:44–60  ·  view source on GitHub ↗
(package_dir)

Source from the content-addressed store, hash-verified

42
43
44def pip_install_packages(package_dir):
45 package_dir = os.path.abspath(package_dir)
46
47 # Setup pip to support modern setuptools calls
48 pip_script = os.path.join(os.environ["VIRTUAL_ENV"], bin_path(), "pip")
49 local_python = os.path.join(
50 os.environ["VIRTUAL_ENV"], bin_path(), "python"
51 )
52
53 # Windows can't replace a running pip.exe, so we need to work around
54 run("%s -m pip install pip==%s" % (local_python, PINNED_PIP_VERSION))
55
56 # Install or update prerequisite build packages
57 setup_requires_dir = os.path.join(package_dir, "setup")
58 install_setup_deps(pip_script, setup_requires_dir)
59
60 find_and_install_tarball(package_dir, "awscli", pip_script)
61
62
63def install_setup_deps(pip_script, setup_package_dir):

Callers 1

install_packagesFunction · 0.85

Calls 4

bin_pathFunction · 0.90
runFunction · 0.90
install_setup_depsFunction · 0.85
find_and_install_tarballFunction · 0.85

Tested by

no test coverage detected