Skip to content

Commit

Permalink
fix: logging environment should use reprs (#409)
Browse files Browse the repository at this point in the history
Fixes #403, I think.
  • Loading branch information
henryiii committed Jun 23, 2023
1 parent 924a057 commit 8088209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scikit_build_core/_shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def _run(
if self.env:
if not self._prev_env:
type(self)._prev_env = self.env.copy()
msg = "\n ".join(f"{k}={v}" for k, v in sorted(self.env.items()))
msg = "\n ".join(f"{k}={v!r}" for k, v in sorted(self.env.items()))
logger.debug("RUNENV:\n {}", msg)
else:
msg = "\n ".join(
f"{self._key_diff(k)} {k}={self.env.get(k, '<unset>')}"
f"{self._key_diff(k)} {k}={self.env.get(k, '<unset>')!r}"
for k in sorted(self.env.keys() | self._prev_env.keys())
if self._prev_env.get(k, None) != self.env.get(k, None)
)
Expand Down

0 comments on commit 8088209

Please sign in to comment.