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

venv does not respectPYTHONDONTWRITEBYTECODE setting #98251

Closed
Assignees
zooba
Labels
3.10only security fixes3.11only security fixes3.12only security fixestype-bugAn unexpected behavior, bug, or error
@zooba

Description

@zooba

Whenwe invoke pip, we use-I to avoid interference from other variables. However, this also means that we ignore legitimate user preferences that ought to be retained. We probably wantPYTHONDONTWRITEBYTECODE,PYTHONUTF8,PYTHONIOENCODING,PYTHONMALLOC,PYTHONCOERCECLOCALE,PYTHONPYCACHEPREFIX at least, and maybe more (I just went through the help output of 3.10).

Interestingly, we don't use isolated mode later on when we upgrade the packages, so maybe we don't need it at all? Or perhaps we should be in some middle ground where we overridePYTHONPATH andPYTHONHOME to point at the venv/be empty but leave everything else in place?

Ping@vsajip

(Discovered in a system where attempting to write .pyc files would break.)

Metadata

Metadata

Assignees

Labels

3.10only security fixes3.11only security fixes3.12only security fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp