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 10, 11:43 PM
Unknown Object (File)
Thu, Oct 9, 1:35 AM
Unknown Object (File)
Sep 13 2025, 11:59 PM
Unknown Object (File)
Sep 13 2025, 6:05 AM
Unknown Object (File)
Sep 13 2025, 4:41 AM
Unknown Object (File)
Sep 10 2025, 4:55 PM
Unknown Object (File)
Jul 27 2025, 12:30 PM
Unknown Object (File)
Jul 26 2025, 11:43 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