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

Allow disabling cache_tag at build #144278

Open
Assignees
zooba
Labels
buildThe build process and cross-buildtopic-importlibtype-bugAn unexpected behavior, bug, or error
@zooba

Description

@zooba

This effectively disables automatic .pyc file generation and loading of__pycache__ files, which is stronger and more reliable than settingPYTHONDONTWRITEBYTECODE.

Historically, we have supportedsys.implementation.cache_tag is None (it's throughout about half the relevant tests), but there's some work to do to get other tests to properly check.

The only build-time option I'm proposing is a preprocessor define that isn't set by default, and when set will setcache_tag to None rather than the default value. Patching in a preprocessor define is much easier to maintain than replacing the code, and I expect anyone who needs this (such as myself) is likely already patching other parts of the source and can easily add a define.

Linked PRs

Metadata

Metadata

Assignees

Labels

buildThe build process and cross-buildtopic-importlibtype-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-2026 Movatter.jp