logo

live-bootstrap

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

pyc.patch (732B)


  1. SPDX-FileCopyrightText: 2024 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: PSF-2.0
  3. Disable creation of pyc files.
  4. --- Python-2.5.6/Lib/py_compile.py 2024-01-22 11:28:44.333395804 +1100
  5. +++ Python-2.5.6/Lib/py_compile.py 2024-01-22 11:28:53.703636809 +1100
  6. @@ -112,6 +112,7 @@
  7. directories).
  8. """
  9. + return
  10. f = open(file, 'U')
  11. try:
  12. timestamp = long(os.fstat(f.fileno()).st_mtime)
  13. --- Python-2.5.6/Python/import.c 2024-01-22 12:24:59.390701654 +1100
  14. +++ Python-2.5.6/Python/import.c 2024-01-22 12:25:18.643222249 +1100
  15. @@ -869,6 +869,7 @@
  16. static void
  17. write_compiled_module(PyCodeObject *co, char *cpathname, time_t mtime)
  18. {
  19. + return;
  20. FILE *fp;
  21. fp = open_exclusive(cpathname);