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 /CHANGES | |
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 'CHANGES')
-rw-r--r-- | CHANGES | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -10,6 +10,14 @@ in the release notes and/or placed into UPDATING. All ports committers are allowed to commit to this file. +20230215: +AUTHOR: vishwin@FreeBSD.org + + USES=python now includes SUB_LIST entries to facilitate common + substitutions for python.mk variables other than in ${PLIST}. + They are the same as PLIST_SUB, except PYTHON_INCLUDEDIR, + PYTHON_LIBDIR and PYTHON_SITELIBDIR include ${PREFIX}. + 20230111: AUTHOR: vishwin@FreeBSD.org |