Skip to content

Commit 7bde46c

Browse files
committed
chore: add PKGCHECK_DEBUG_SDIST=1 support working on generated files
I've just been shoving a return in there, and one of these days I was going to forget to remove it. Thus do this instead. Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent b835221 commit 7bde46c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

py_build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ def create_generated_files():
115115
write_files(cleanup_files)
116116
yield
117117
finally:
118+
if os.environ.get("PKGCHECK_DEBUG_SDIST"):
119+
print(
120+
"WARNING: not wiping cleanup files since PKGCHECK_DEBUG_SDIST is set in the environment"
121+
)
122+
return
118123
for path in cleanup_files:
119124
try:
120125
path.unlink()

0 commit comments

Comments
 (0)