Skip to content

Commit 62516b8

Browse files
committed
Rename PIP_{REQ -> BUILD}_TRACKER
1 parent cbfcbd2 commit 62516b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/pip/_internal/req/req_tracker.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ def update_env_context_manager(**changes: str) -> Iterator[None]:
4040

4141
@contextlib.contextmanager
4242
def get_build_tracker() -> Iterator["BuildTracker"]:
43-
root = os.environ.get("PIP_REQ_TRACKER")
43+
root = os.environ.get("PIP_BUILD_TRACKER")
4444
with contextlib.ExitStack() as ctx:
4545
if root is None:
46-
root = ctx.enter_context(TempDirectory(kind="req-tracker")).path
47-
ctx.enter_context(update_env_context_manager(PIP_REQ_TRACKER=root))
46+
root = ctx.enter_context(TempDirectory(kind="build-tracker")).path
47+
ctx.enter_context(update_env_context_manager(PIP_BUILD_TRACKER=root))
4848
logger.debug("Initialized build tracking at %s", root)
4949

5050
with BuildTracker(root) as tracker:

tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def isolate(tmpdir: Path, monkeypatch: pytest.MonkeyPatch) -> None:
271271
monkeypatch.setenv("PIP_DISABLE_PIP_VERSION_CHECK", "true")
272272

273273
# Make sure tests don't share a requirements tracker.
274-
monkeypatch.delenv("PIP_REQ_TRACKER", False)
274+
monkeypatch.delenv("PIP_BUILD_TRACKER", False)
275275

276276
# FIXME: Windows...
277277
os.makedirs(os.path.join(home_dir, ".config", "git"))

0 commit comments

Comments
 (0)