Content-Length: 315486 | pFad | https://github.com/python/cpython/pull/128105/changes

69E562B5 gh-127638: Prevent copying extended attributes of script files when creating venv by wimglenn · Pull Request #128105 · python/cpython · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions Lib/venv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,12 +580,9 @@ def skip_file(f):
logger.warning('unable to copy script %r, '
'may be binary: %s', srcfile, e)
continue
if new_data == data:
shutil.copy2(srcfile, dstfile)
else:
with open(dstfile, 'wb') as f:
f.write(new_data)
shutil.copymode(srcfile, dstfile)
with open(dstfile, 'wb') as f:
f.write(new_data)
shutil.copymode(srcfile, dstfile)

def upgrade_dependencies(self, context):
logger.debug(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ``No space left on device`` error emitted by :mod:`venv` when on a filesystem that contains large extended attributes.
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/128105/changes

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy