(package_dir)
| 42 | |
| 43 | |
| 44 | def 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 | |
| 63 | def install_setup_deps(pip_script, setup_package_dir): |
no test coverage detected