From a9d9d3a4272303bf226b9deb55c42303e4fcebdc Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 27 Feb 2023 22:01:32 +0100 Subject: lang/python: Revert "add bytecode trigger" This reverts commit c17ddfbf66e2801ec620d49979aca3d7077d7002. This causes breakage on several ports, and the next iteration requires a full exp-run. See: Differential Revision: https://reviews.freebsd.org/D34739 --- lang/python311/files/python3.11.ucl.in | 40 ---------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 lang/python311/files/python3.11.ucl.in (limited to 'lang/python311/files/python3.11.ucl.in') diff --git a/lang/python311/files/python3.11.ucl.in b/lang/python311/files/python3.11.ucl.in deleted file mode 100644 index 63d455839549..000000000000 --- a/lang/python311/files/python3.11.ucl.in +++ /dev/null @@ -1,40 +0,0 @@ -path_glob: "%%PYTHON_SITELIBDIR%%/*" -trigger: { - type: lua - sandbox: false - script: <=> removed stale bytecode " .. bytecode_file) - os.remove(full_path .. "/" .. bytecode_file) - end - end - end - end - local res = pkg.readdir(full_path) - if #res == 0 then - --print(" >=> removed empty directory " .. full_path ) - os.remove(full_path) - end - end - end -end - -print(">=> Cleaning stale bytecode files...") -cleanup("%%PYTHON_SITELIBDIR%%") - -print(">=> Byte-compiling Python source files...") -pkg.exec({"%%PYTHON_VERSION%%", "-m", "compileall", "-q", "-o", "0", "-o", "1", "-o", "2", "%%PYTHON_SITELIBDIR%%"}) -EOS -} -- cgit v1.2.3