Skip to content

Commit d6dc86e

Browse files
authored
Update linux.py
1 parent 8a589bc commit d6dc86e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

cibuildwheel/platforms/linux.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -355,17 +355,8 @@ def build_in_container(
355355
container.call(["uv", "venv", venv_dir, "--python", python_bin / "python"], env=env)
356356
else:
357357
# Use embedded dependencies from virtualenv to ensure determinism
358-
venv_version = container.call(
359-
[
360-
"python",
361-
"-c",
362-
"import importlib.metadata as m; print(m.version('virtualenv'))",
363-
],
364-
env=env,
365-
).strip()
366-
assert venv_version
367358
venv_args = ["--no-periodic-update", "--pip=embed", "--no-setuptools"]
368-
if Version(venv_version) < Version("20.31") or "38" in config.identifier:
359+
if "38" in config.identifier:
369360
venv_args.append("--no-wheel")
370361
container.call(["python", "-m", "virtualenv", *venv_args, venv_dir], env=env)
371362

0 commit comments

Comments
 (0)