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

Function get_package_tarball

scripts/install_deps.py:17–27  ·  view source on GitHub ↗
(package_dir, package_prefix)

Source from the content-addressed store, hash-verified

15
16
17def get_package_tarball(package_dir, package_prefix):
18 package_filenames = sorted(
19 [p for p in os.listdir(package_dir) if p.startswith(package_prefix)]
20 )
21 if len(package_filenames) == 0:
22 raise InstallationError(
23 "Unable to find local package starting with %s prefix."
24 % package_prefix
25 )
26 # We only expect a single package from the downloader
27 return package_filenames[0]
28
29
30def install_local_package(package_dir, package, pip_script="pip"):

Callers 1

find_and_install_tarballFunction · 0.85

Calls 1

InstallationErrorClass · 0.85

Tested by

no test coverage detected