logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

pyc.patch (708B)


  1. SPDX-FileCopyrightText: 2024 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: Python-2.0.1
  3. Disable creation of pyc files.
  4. --- Python-2.0.1/Lib/py_compile.py 2024-01-22 11:28:00.291261389 +1100
  5. +++ Python-2.0.1/Lib/py_compile.py 2024-01-22 11:28:13.462600939 +1100
  6. @@ -41,6 +41,7 @@
  7. directories).
  8. """
  9. + return
  10. import os, marshal, __builtin__
  11. f = open(file)
  12. try:
  13. --- Python-2.0.1/Python/import.c 2024-01-22 12:23:34.349395727 +1100
  14. +++ Python-2.0.1/Python/import.c 2024-01-22 12:23:30.299285640 +1100
  15. @@ -672,6 +672,7 @@
  16. static void
  17. write_compiled_module(PyCodeObject *co, char *cpathname, long mtime)
  18. {
  19. + return;
  20. FILE *fp;
  21. fp = open_exclusive(cpathname);