Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cxfreeze-py37.patch 1.4KB

123456789101112131415161718192021222324252627282930313233
  1. From 76542754e01d2d4b21c6744c563dda8d5c72b3b2 Mon Sep 17 00:00:00 2001
  2. From: egormartiniuc <egor.martiniuc@gmail.com>
  3. Date: Tue, 3 Jul 2018 16:38:06 +0200
  4. Subject: [PATCH] Update freezer.py
  5. python 3.7.0 64Bit
  6. ---
  7. cx_Freeze/freezer.py | 10 ++++++++--
  8. 1 file changed, 8 insertions(+), 2 deletions(-)
  9. diff --git a/cx_Freeze/freezer.py b/cx_Freeze/freezer.py
  10. index 27a78c2..cfcc3b4 100644
  11. --- a/cx_Freeze/freezer.py
  12. +++ b/cx_Freeze/freezer.py
  13. @@ -555,10 +555,16 @@ def _WriteModules(self, fileName, finder):
  14. # the file is up to date so we can safely set this value to zero
  15. if module.code is not None:
  16. if module.file is not None and os.path.exists(module.file):
  17. - mtime = os.stat(module.file).st_mtime
  18. + stat = os.stat(module.file)
  19. + mtime = stat.st_mtime
  20. + size = stat.st_size & 0xFFFFFFFF
  21. else:
  22. mtime = time.time()
  23. - header = magic + struct.pack("<ii", int(mtime), 0)
  24. + size = 0
  25. + if sys.version_info[:2] == (3, 7):
  26. + header = magic + struct.pack("<iii", 0, int(mtime), size)
  27. + else:
  28. + header = magic + struct.pack("<ii", int(mtime), size)
  29. data = header + marshal.dumps(module.code)
  30. # if the module should be written to the file system, do so