diff options
author | Charlie Li <vishwin@FreeBSD.org> | 2025-06-19 14:48:45 -0400 |
---|---|---|
committer | Charlie Li <vishwin@FreeBSD.org> | 2025-06-19 14:48:45 -0400 |
commit | 5cfc1413ac3cec6225bd7ca53a7658e3949f70a6 (patch) | |
tree | 4c47101ba9ec60409cca5424dad3f85d0d8abb23 | |
parent | www/jmeter: Update 2.11 => 5.6.3 (diff) |
python.mk: privatise PYMAGICTAG
Used as a command to populate the correct tag for bytecode files
according to PEP 3147 under USE_PYTHON=py3kplist. Not for general
use.
Event: Kitchener-Waterloo Hackathon 202506
-rw-r--r-- | Mk/Uses/python.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index aba9c48df38c..bffb94c62e04 100644 --- a/Mk/Uses/python.mk +++ b/Mk/Uses/python.mk @@ -816,7 +816,7 @@ add-plist-pymod: # When Python version is 3.2+ we rewrite all the filenames # of TMPPLIST that end with .py[co], so that they conform # to PEP 3147 (see https://www.python.org/dev/peps/pep-3147/) -PYMAGICTAG= ${PYTHON_CMD} -c 'import sys; print(sys.implementation.cache_tag)' +_PYMAGICTAG= ${PYTHON_CMD} -c 'import sys; print(sys.implementation.cache_tag)' _USES_stage+= 935:add-plist-python add-plist-python: @${AWK} '\ @@ -825,7 +825,7 @@ add-plist-python: /^@dirrmtry / {d = substr($$0, 11); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \ {print} \ ' \ - pc="__pycache__" mt="$$(${PYMAGICTAG})" pyo="opt-1.pyc" \ + pc="__pycache__" mt="$$(${_PYMAGICTAG})" pyo="opt-1.pyc" \ ${TMPPLIST} > ${TMPPLIST}.pyc_tmp @${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST} . endif # ${PYTHON_REL} >= 30200 && defined(_PYTHON_FEATURE_PY3KPLIST) |