Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-127638: Prevent copying extended attributes of script files when creating venv#128105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
wimglenn wants to merge6 commits intopython:main
base:main
Choose a base branch
Loading
fromwimglenn:issue-127638

Conversation

wimglenn
Copy link
Contributor

@wimglennwimglenn commentedDec 19, 2024
edited
Loading

Prevent the regression in Python 3.13 on Linux when creating a venv from interpreter hosted on large xattr filesystem.

There are a few othercopy2 usages invenv/__init__.py but they are all gated by conditions onos.name == 'nt' so don't affect Linux.

Instead of handling the possible error from the copy (which looks like:shutil.copy2 -> copystat -> _copyattr -> os.setxattr -> OSError: [Errno 28] No space left on device) I've opted to just remove that conditional. I don't think we want to have attrs or not based on whethernew_data == data, rather we want them always there or not regardless of file content.

@ZeroIntensityZeroIntensity added topic-venvRelated to the venv module needs backport to 3.13bugs and security fixes labelsJan 10, 2025
Copy link
Member

@ZeroIntensityZeroIntensity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

cc@zooba as the author of the regressing PR (#113129)

@zooba
Copy link
Member

Why Linux can't copy files properly is out of my depth 😆 If this fixes it, sure.

@vsajip likes to look in on venv changes.

@serhiy-storchakaserhiy-storchaka added the needs backport to 3.14bugs and security fixes labelMay 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ZeroIntensityZeroIntensityZeroIntensity left review comments

@vsajipvsajipAwaiting requested review from vsajipvsajip is a code owner

@FFY00FFY00Awaiting requested review from FFY00FFY00 is a code owner

Assignees
No one assigned
Labels
awaiting reviewneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixestopic-venvRelated to the venv module
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@wimglenn@zooba@ZeroIntensity@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp