コード例 #1
0
ファイル: license.py プロジェクト: uranusjr/vendoring
def download_sources(location: Path, requirements: Path) -> None:
    cmd = [
        "pip",
        "download",
        "-r",
        str(requirements),
        "--no-binary",
        ":all:",
        "--no-deps",
        "--dest",
        str(location),
    ]
    run(cmd, working_directory=None)
コード例 #2
0
ファイル: vendor.py プロジェクト: pradyunsg/vendoring
def download_libraries(requirements: Path, destination: Path) -> None:
    command = [
        "pip",
        "install",
        "-t",
        str(destination),
        "-r",
        str(requirements),
        "--no-compile",
        # We use --no-deps because we want to ensure that dependencies are provided.
        # This includes all dependencies recursively up the chain.
        "--no-deps",
    ]
    run(command, working_directory=None)
コード例 #3
0
ファイル: vendor.py プロジェクト: pradyunsg/vendoring
def _apply_patch(patch_file_path: Path, working_directory: Path) -> None:
    run(
        ["git", "apply", "--verbose", str(patch_file_path)],
        working_directory=working_directory,
    )