Skip to content

Commit 5ba3c92

Browse files
author
Jussi Kukkonen
authored
Merge pull request #1982 from jku/fix-pip-download
verify_release: Tweak pip download
2 parents 3f28d40 + 96232d2 commit 5ba3c92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

verify_release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_pypi_pip_version() -> str:
7676
# newest tarball and figure out the version from the filename
7777
with TemporaryDirectory() as pypi_dir:
7878
cmd = ["pip", "download", "--no-deps", "--dest", pypi_dir]
79-
source_download = cmd + ["--no-binary", ":all:", PYPI_PROJECT]
79+
source_download = cmd + ["--no-binary", PYPI_PROJECT, PYPI_PROJECT]
8080
subprocess.run(source_download, stdout=subprocess.DEVNULL, check=True)
8181
for filename in os.listdir(pypi_dir):
8282
prefix, postfix = f"{PYPI_PROJECT}-", ".tar.gz"
@@ -113,7 +113,7 @@ def verify_pypi_release(version: str, compare_dir: str) -> bool:
113113
cmd = ["pip", "download", "--no-deps", "--dest", pypi_dir]
114114
target = f"{PYPI_PROJECT}=={version}"
115115
binary_download = cmd + [target]
116-
source_download = cmd + ["--no-binary", ":all:", target]
116+
source_download = cmd + ["--no-binary", PYPI_PROJECT, target]
117117

118118
subprocess.run(binary_download, stdout=subprocess.DEVNULL, check=True)
119119
subprocess.run(source_download, stdout=subprocess.DEVNULL, check=True)

0 commit comments

Comments
 (0)