(package_dir, package_prefix)
| 15 | |
| 16 | |
| 17 | def 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 | |
| 30 | def install_local_package(package_dir, package, pip_script="pip"): |
no test coverage detected