Skip to content

Commit 1f6828b

Browse files
committed
Revert "🚑Hack contextlib.contextmanager runtime err"
This reverts commit 635619a.
1 parent 3b4ff86 commit 1f6828b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

piptools/build.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,10 @@ def _create_project_builder(
260260
else _temporary_constraints_file_set_for_pip(upgrade_packages)
261261
)
262262

263-
with build.env.DefaultIsolatedEnv() as env:
263+
with maybe_pip_constrained_context, build.env.DefaultIsolatedEnv() as env:
264264
builder = build.ProjectBuilder.from_isolated_env(env, src_dir, runner)
265-
with maybe_pip_constrained_context:
266-
env.install(builder.build_system_requires)
267-
env.install(builder.get_requires_for_build("wheel"))
265+
env.install(builder.build_system_requires)
266+
env.install(builder.get_requires_for_build("wheel"))
268267
yield builder
269268

270269

0 commit comments

Comments
 (0)