Skip to content

Commit

Permalink
Add some more logs to debug stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Jan 12, 2025
1 parent 316f066 commit 9349997
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rez_pip/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ def deleteEntryFromRecord(
with open(recordFilePath, "r") as f:
lines = f.readlines()

print("Lines in RECORD:", lines)

schemesRaw = getSchemeDict(dist.name, path)
schemes = {
key: os.path.relpath(value, path)
Expand All @@ -309,6 +311,7 @@ def deleteEntryFromRecord(
for index, entry in enumerate(entries):
for schemePath in schemes.values():
if entry.startswith(schemePath):
_LOG.info(f"Stripping {schemePath!r}/ from {entry!r}")
entries[index] = entry.lstrip(schemePath + "/")
# Break on first match
break
Expand Down

0 comments on commit 9349997

Please sign in to comment.