Skip to content
Permalink
Browse files
Merge pull request #38 from matysek/develop
Antivirus, foreign characters in paths on Win and updated license header in bootloader code.
  • Loading branch information
matysek committed Feb 22, 2013
2 parents 486aca6 + 0efa074 commit 555e9f7f6fbaccaeb024c658fcb96e199f4a3b0d
Showing with 1,589 additions and 1,654 deletions.
  1. BIN PyInstaller/bootloader/Windows-32bit/inprocsrvr.dll
  2. BIN PyInstaller/bootloader/Windows-32bit/inprocsrvr_d.dll
  3. BIN PyInstaller/bootloader/Windows-32bit/inprocsrvrw.dll
  4. BIN PyInstaller/bootloader/Windows-32bit/inprocsrvrw_d.dll
  5. BIN PyInstaller/bootloader/Windows-32bit/run.exe
  6. BIN PyInstaller/bootloader/Windows-32bit/run_d.exe
  7. BIN PyInstaller/bootloader/Windows-32bit/runw.exe
  8. BIN PyInstaller/bootloader/Windows-32bit/runw_d.exe
  9. BIN PyInstaller/bootloader/Windows-64bit/inprocsrvr.dll
  10. BIN PyInstaller/bootloader/Windows-64bit/inprocsrvr_d.dll
  11. BIN PyInstaller/bootloader/Windows-64bit/inprocsrvrw.dll
  12. BIN PyInstaller/bootloader/Windows-64bit/inprocsrvrw_d.dll
  13. BIN PyInstaller/bootloader/Windows-64bit/run.exe
  14. BIN PyInstaller/bootloader/Windows-64bit/run_d.exe
  15. BIN PyInstaller/bootloader/Windows-64bit/runw.exe
  16. BIN PyInstaller/bootloader/Windows-64bit/runw_d.exe
  17. +5 −2 PyInstaller/build.py
  18. +2 −0 PyInstaller/loader/pyi_archive.py
  19. +13 −0 PyInstaller/loader/pyi_carchive.py
  20. +0 −408 bootloader/common/launch.c
  21. +0 −100 bootloader/common/launch.h
  22. +59 −117 bootloader/common/main.c
  23. +11 −0 bootloader/common/mkdtemp.h
  24. +57 −50 bootloader/common/pyi_archive.c
  25. +53 −37 bootloader/common/pyi_archive.h
  26. +11 −29 bootloader/common/pyi_global.c
  27. +44 −41 bootloader/common/pyi_global.h
  28. +467 −0 bootloader/common/pyi_launch.c
  29. +86 −0 bootloader/common/pyi_launch.h
  30. +222 −0 bootloader/common/pyi_path.c
  31. +35 −0 bootloader/common/pyi_path.h
  32. +11 −29 bootloader/common/pyi_python.c
  33. +13 −26 bootloader/common/pyi_python.h
  34. +50 −75 bootloader/common/pyi_pythonlib.c
  35. +13 −27 bootloader/common/pyi_pythonlib.h
  36. +269 −134 bootloader/common/pyi_utils.c
  37. +16 −31 bootloader/common/pyi_utils.h
  38. +8 −21 bootloader/common/stb.h
  39. +13 −35 bootloader/common/utils.h
  40. +10 −25 bootloader/linux/getpath.h
  41. +0 −234 bootloader/linux/utils.c
  42. +18 −30 bootloader/windows/dllmain.c
  43. +12 −24 bootloader/windows/resource.h
  44. +30 −127 bootloader/windows/utils.c
  45. +34 −21 bootloader/wscript
  46. +11 −17 bootloader/wscript17
  47. +4 −4 buildtests/multipackage/test_multipackage1.spec
  48. +2 −2 buildtests/multipackage/test_multipackage2.spec
  49. +2 −2 buildtests/multipackage/test_multipackage3.spec
  50. +2 −2 buildtests/multipackage/test_multipackage4.spec
  51. +3 −3 buildtests/multipackage/test_multipackage5.spec
  52. +1 −1 buildtests/runtests.py
  53. +2 −0 doc/credits.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -726,7 +726,7 @@ def check_guts(self, last_build):
return False

def assemble(self):
logger.info("building PYZ %s", os.path.basename(self.out))
logger.info("building PYZ (ZlibArchive) %s", os.path.basename(self.out))
pyz = pyi_archive.ZlibArchive(level=self.level)
toc = self.toc - config['PYZ_dependencies']
pyz.build(self.name, toc)
@@ -943,11 +943,13 @@ def check_guts(self, last_build):
return False

def assemble(self):
logger.info("building PKG %s", os.path.basename(self.name))
logger.info("building PKG (CArchive) %s", os.path.basename(self.name))
trash = []
mytoc = []
seen = {}
toc = addSuffixToExtensions(self.toc)
# 'inm' - relative filename inside a CArchive
# 'fnm' - absolute filename as it is on the file system.
for inm, fnm, typ in toc:
if not os.path.isfile(fnm) and check_egg(fnm):
# file is contained within python egg, it is added with the egg
@@ -965,6 +967,7 @@ def assemble(self):
if typ == 'BINARY' and fnm in seen:
continue
seen[fnm] = 1

mytoc.append((inm, fnm, self.cdict.get(typ, 0),
self.xformdict.get(typ, 'b')))
elif typ == 'OPTION':
@@ -259,6 +259,8 @@ class ZlibArchive(Archive):
"""
ZlibArchive - an archive with compressed entries. Archive is read
from the executable created by PyInstaller.
This archive is used for bundling python modules inside the executable.
"""
MAGIC = 'PYZ\0'
TOCPOS = 8
@@ -97,7 +97,16 @@ def add(self, dpos, dlen, ulen, flag, typcd, nm):
FLAG says if the data is compressed.
TYPCD is the "type" of the entry (used by the C code)
NM is the entry's name.
This function is used only while creating an executable.
"""
# Import module here since it might not be available during bootstrap
# and loading pyi_carchive module could fail.
import os.path
# Ensure forward slashes in paths are on Windows converted to back
# slashes '\\' since on Windows the bootloader works only with back
# slashes.
nm = os.path.normpath(nm)
self.data.append((dpos, dlen, ulen, flag, typcd, nm))

def get(self, ndx):
@@ -125,6 +134,10 @@ class CArchive(pyi_archive.Archive):
"""
An Archive subclass that can hold arbitrary data.
This class encapsulates all files that are bundled within an executable.
It can contain ZlibArchive (Python .pyc files), dlls, Python C extensions
and all other data files that are bundled in --onefile mode.
Easily handled from C or from Python.
"""
# MAGIC is usefull to verify that conversion of Python data types

0 comments on commit 555e9f7

Please sign in to comment.