Commit Graph

30 Commits

Author SHA1 Message Date
giovannibajo 48ef3268d1 Check doIt() return value.
From: Anton Gyllenberg <anton@iki.fi>

finalizePython() may crash if doIt() fails.  Add some error checking
to fail more gracefully. This will prevent the "Do you want to send
information to Microsoft" dialog e.g., in case python.dll could not
be loaded.


git-svn-id: http://svn.pyinstaller.org/trunk@333 8dd32b29-ccff-0310-8a9a-9233e24343b1
2007-11-20 13:34:11 +00:00
giovannibajo 1e9920032c Let the windows loader try to open myprog.pkg before myprog.exe.
From: Anton Gyllenberg <anton@iki.fi>

Having the archive in an external file makes it possible to work around some
problems stemming from the process opening its own executable and keeping it
open.


git-svn-id: http://svn.pyinstaller.org/trunk@332 8dd32b29-ccff-0310-8a9a-9233e24343b1
2007-11-20 13:32:54 +00:00
giovannibajo d4b8c25600 Convert invocations of VS(), OTHERERROR() and FATALERROR().
From: Anton Gyllenberg <anton@iki.fi>

Convert some invocations of VS(), OTHERERROR() and FATALERROR() to use
the newly introduced printf style format strings. Examples of invocations
targetted for modification are cases multiple invocations could be handled
by one invocation with format string and those that used a string buffer
filled with strncpy() or the like.


git-svn-id: http://svn.pyinstaller.org/trunk@330 8dd32b29-ccff-0310-8a9a-9233e24343b1
2007-11-20 13:26:38 +00:00
giovannibajo a1d5c791fb Introduce printf()-style error macros in bootloader for Windows.
From: Anton Gyllenberg <anton@iki.fi>

The output macros -- VS(), FATALERROR() and OTHERERROR(), had no output
formatting options. This lead to unnatural constructs like
	VS("Loading dll: ");
	VS(dllpath);
	VS("\n");

Worse, for a Windows windowed application, the above example would
generate three dialog boxes of which the last one blank.

Therefore, make the functions behave like and have the same signature
as printf(). They should be backwards compatible as the old invocations
had just one argument which for some configurations was used as a format
string to printf.

I could not find a way to use preprocessor macros with a variable
amount of arguments on Microsoft Visual Studio 2003, so I opted to
make real functions for the message boxes on Windows.


git-svn-id: http://svn.pyinstaller.org/trunk@329 8dd32b29-ccff-0310-8a9a-9233e24343b1
2007-11-20 13:25:35 +00:00
giovannibajo bad19c1378 Add compatibility fix for older Python versions
git-svn-id: http://svn.pyinstaller.org/trunk@307 8dd32b29-ccff-0310-8a9a-9233e24343b1
2007-02-16 18:22:21 +00:00
giovannibajo 580c535a8f Ticket #4: remove C++-ism from the bootloader for the AIX compiler.
git-svn-id: http://svn.pyinstaller.org/trunk@304 8dd32b29-ccff-0310-8a9a-9233e24343b1
2007-01-28 14:56:59 +00:00
giovannibajo 3f09b1e5bf Merge of [293] from branches/mac:
In [128], Make.py was changed to generate a Makefile which links against
the dynamic library of Python. This looks like a mistake, since the
distribution than depends on libpythonX.X.so.
I changed it back, so that it still uses syconfig to extract the correct
path of the static library. The problem now appears to be that not all
distributions include a static library...


git-svn-id: http://svn.pyinstaller.org/trunk@297 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-12-14 00:28:14 +00:00
giovannibajo 5fb220ef2b Fix ticket #69: import [220], [223] and [224] from the crypt branch,
which allow to compress the bootstrap modules so that they not appear
in plaintext in the executable.


git-svn-id: http://svn.pyinstaller.org/trunk@288 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-09-05 12:44:44 +00:00
giovannibajo fe6e72b258 Fix buffer overrun with deep directory path
git-svn-id: http://svn.pyinstaller.org/trunk@287 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-09-05 12:09:56 +00:00
giovannibajo fb83583915 Backport of r284 from the crypt-branch (committed there by mistake...)
git-svn-id: http://svn.pyinstaller.org/trunk@285 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-08-06 21:09:35 +00:00
giovannibajo cabcff4e20 Fix problem with icons provided by the user disappearing when compressing
the executables with UPX. The problem is actually a bug in UPX, but it's
still worth working-around it by using LANG_NEUTRAL for icons in bootloader.


git-svn-id: http://svn.pyinstaller.org/trunk@278 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-07-08 18:51:46 +00:00
williamcaban 96299a8ac9 Re-install the use of the binlib variable that was left out by mistake.
git-svn-id: http://svn.pyinstaller.org/trunk@275 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-04-11 03:52:01 +00:00
williamcaban 0322d767fe This file is not longer being used by any other file.
git-svn-id: http://svn.pyinstaller.org/trunk@274 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-04-11 03:43:29 +00:00
williamcaban 9135e30498 Fixed for accuracy detecting the path of the libpython####.so.###.##. This is temporary fix since eventually it is going to be migrated to disutils.
git-svn-id: http://svn.pyinstaller.org/trunk@273 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-04-11 03:42:46 +00:00
giovannibajo 8a347723a1 Add resource section to bootloader executables
git-svn-id: http://svn.pyinstaller.org/trunk@271 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-02-18 16:23:08 +00:00
giovannibajo d2136e1891 Add a whitespace in a message
git-svn-id: http://svn.pyinstaller.org/trunk@267 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-02-14 12:06:34 +00:00
giovannibajo d518ec96f2 Abort execution of the program if a runtime script fails
git-svn-id: http://svn.pyinstaller.org/trunk@243 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-02-06 13:30:34 +00:00
giovannibajo 7351c50026 Fix indentation
git-svn-id: http://svn.pyinstaller.org/trunk@242 8dd32b29-ccff-0310-8a9a-9233e24343b1
2006-02-06 13:27:12 +00:00
giovannibajo 16cc34c992 Make bootloader fully static -- no more issues with MSVCRT71.DLL! (fix ticket #12)
git-svn-id: http://svn.pyinstaller.org/trunk@164 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-10-11 17:34:57 +00:00
giovannibajo f6c915e0c4 Compile zlib from source code
git-svn-id: http://svn.pyinstaller.org/trunk@159 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-10-10 17:45:30 +00:00
williamcaban b5670b4bdd Cleaner port to distutils
git-svn-id: http://svn.pyinstaller.org/trunk@128 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-26 17:35:41 +00:00
williamcaban 70649cfaba Initial/temporary distutils utilization on Make.py
git-svn-id: http://svn.pyinstaller.org/trunk@122 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-22 22:23:39 +00:00
williamcaban 6c5af20757 Changes to use support/loader under *nix
git-svn-id: http://svn.pyinstaller.org/trunk@46 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-12 21:13:56 +00:00
giovannibajo 72bc2b45f7 Switch to GPL license (with exception)
git-svn-id: http://svn.pyinstaller.org/trunk@43 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-12 09:33:09 +00:00
giovannibajo 8ce8f2fbab Remove old Windows build system
git-svn-id: http://svn.pyinstaller.org/trunk@42 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-12 08:48:07 +00:00
giovannibajo 736a0a3d5c Build also resource file with icon
git-svn-id: http://svn.pyinstaller.org/trunk@22 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-05 17:20:11 +00:00
giovannibajo a0a283e752 Bootloader build system using Scons (Windows-only for now)
git-svn-id: http://svn.pyinstaller.org/trunk@21 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-05 16:40:18 +00:00
giovannibajo 0c00ae5bf6 Add local binary copy of zlib 1.2.3 (for Windows builds)
git-svn-id: http://svn.pyinstaller.org/trunk@19 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-05 15:53:02 +00:00
giovannibajo 85d5aae814 Reformat and properly indent
git-svn-id: http://svn.pyinstaller.org/trunk@17 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-05 08:29:12 +00:00
giovannibajo b98a53df92 Imported Python Installer 5b5
git-svn-id: http://svn.pyinstaller.org/trunk@2 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-02 17:15:02 +00:00