Skip to content

Commit

Permalink
Revert "🚑Hack contextlib.contextmanager runtime err"
Browse files Browse the repository at this point in the history
This reverts commit 635619a.
  • Loading branch information
webknjaz committed Dec 12, 2024
1 parent 3b4ff86 commit 1f6828b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions piptools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,10 @@ def _create_project_builder(
else _temporary_constraints_file_set_for_pip(upgrade_packages)
)

with build.env.DefaultIsolatedEnv() as env:
with maybe_pip_constrained_context, build.env.DefaultIsolatedEnv() as env:
builder = build.ProjectBuilder.from_isolated_env(env, src_dir, runner)
with maybe_pip_constrained_context:
env.install(builder.build_system_requires)
env.install(builder.get_requires_for_build("wheel"))
env.install(builder.build_system_requires)
env.install(builder.get_requires_for_build("wheel"))
yield builder


Expand Down

0 comments on commit 1f6828b

Please sign in to comment.