Skip to content

Commit bf266a8

Browse files
committed
Update test to account for stricter Pip 25.3 --no-binary handling.
1 parent 5d9efeb commit bf266a8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tests/integration/test_issue_2343.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,24 @@ def test_no_build_no_wheel_honored_pex(repo_args):
8888
re_flags=re.DOTALL,
8989
)
9090

91+
if PipVersion.DEFAULT >= PipVersion.v25_3:
92+
# N.B.: Pip 25.3 is stricter and `--no-wheel`, which translates to Pip's
93+
# `--no-binary :all:`, indicates not even build requirements, like setuptools and wheel,
94+
# can come from wheels; so the sdist builds fail. As such we target just `only_sdist` and
95+
# `both` for sdist builds.
96+
no_wheel_args = [
97+
"--only-build",
98+
"only_sdist",
99+
"--only-build",
100+
"both",
101+
]
102+
else:
103+
no_wheel_args = ["--no-wheel"]
104+
91105
run_pex_command(
92106
args=repo_args
107+
+ no_wheel_args
93108
+ [
94-
"--no-wheel",
95109
"only_sdist",
96110
"both",
97111
"--",

0 commit comments

Comments
 (0)