diff options
author | Charlie Li <vishwin@FreeBSD.org> | 2023-02-15 20:57:06 +0000 |
---|---|---|
committer | Charlie Li <vishwin@FreeBSD.org> | 2023-02-15 21:35:07 +0000 |
commit | c17ddfbf66e2801ec620d49979aca3d7077d7002 (patch) | |
tree | 7c8717b62de7a907b3f638cde512f62ca9697752 /UPDATING | |
parent | 9cdba749a89e8c8e4db9070c37dae493f4938726 (diff) | |
download | ports-c17ddfbf66e2801ec620d49979aca3d7077d7002.tar.gz ports-c17ddfbf66e2801ec620d49979aca3d7077d7002.zip |
lang/python: add bytecode trigger
Facilitates compiling, writing and removing bytecode files (.pyc)
in site-packages after all pkg transactions have been completed.
Technical details: https://wiki.freebsd.org/Python/CompiledPackages
Fixes reports of Python port builds as root failing on filesystem
violations due to bytecode file writes where the port did not include
them in the package.
For those ports/packages that currently package bytecode, some
checksum mismatches on those files may occur. This is harmless and
will be rectified, in large as part of a USE_PYTHON=distutils
overhaul to reduce churn.
While here, implement a long-standing todo item of letting lang/python
ports use python.mk bits. Not only does this obviate duplicate
variables in each Makefile, but SUB_LIST (also added) is used for
these triggers.
Co-authored by: tcberner
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D34739
Diffstat (limited to 'UPDATING')
-rw-r--r-- | UPDATING | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -5,6 +5,23 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20230215: + AFFECTS: users of python + AUTHOR: vishwin@FreeBSD.org + + A trigger has been added to the lang/python3* ports to compile, + write and remove bytecode files (.pyc) in site-packages after all + pkg transactions have been completed. pkg will no longer manage + such files directly, as they are meant to be generated after + installation. + + For those ports/packages that still package bytecode, some package + checksum mismatches on those files may occur. This is harmless + and will be rectified. + + Technical details available at: + https://wiki.freebsd.org/Python/CompiledPackages + 20230213: Affects: users of sysutils/nut* AUTHOR: cy@FreeBSD.org |