Page MenuHomeFreeBSD

python.mk: do not write bytecode during build
Needs ReviewPublic

Authored by vishwin on Mar 29 2023, 4:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 16, 9:08 AM
Unknown Object (File)
Wed, Oct 14, 6:28 PM
Unknown Object (File)
Wed, Oct 14, 3:29 PM
Unknown Object (File)
Thu, Oct 1, 8:59 AM
Unknown Object (File)
Sat, Sep 26, 10:48 AM
Unknown Object (File)
Aug 27 2026, 5:36 PM
Unknown Object (File)
Aug 23 2026, 6:19 AM
Unknown Object (File)
Aug 12 2026, 7:39 PM
Subscribers

Details

Reviewers
None
Group Reviewers
Python
portmgr
Summary

When building as a user with write privileges to locations of imported modules (usually root), Python writes bytecode by default if not already existing. Disable this behaviour to prevent filesystem pollution.

Test Plan

exp-run

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 50628
Build 47519: arc lint + arc unit