"Giovanni Bajo" <[EMAIL PROTECTED]> writes:

> Berthold Höllmann <hoel-dZ6tr3DbuA5Wk0Htik3J/[EMAIL PROTECTED]> wrote:
>
>> I try to build installer files that are using VC6 build
>> extensions. The executable segfaults very erarly, I gess because of
>> the loader for Pyton 2.4 Windows is build using VC7? How do I build
>> the loader using VC6?
>
> You need VC6 to build extensions for Python 2.3 and before, and VC7.1 (aka 
> .NET
> 2003) for Python 2.4 and after. This is mandatory for all the extensions, and
> the bootloader has to follow the same rule. If you are trying to use an
> extension compiled with VC6 with Python 2.4, you're doing a mistake, and it
> will eventually crash (I'd be surprised if it worked in any non-trivial 
> usage).
> The solution, if you are using Python 2.4, is to compile everything with 
> VC7.1.
>
> BTW, the bootloader is already precompiled also for VC6: look into
> support/loader (the executables with '6' in the name are built with VC6, and
> those with '7' in the name are built with VC7). PyInstaller automatically 
> picks
> up the one with the right name depending on the Python version you are using.

OK, I incorrectly described my problem. I have build python 2.4 unsing
VC6. I had to because of some inhouse extension modules need VC6 to
work correctly (VC6 compile library, VC7 compilations not
avaliable). Pyinstaller used the VC7 loader instead of the VC6 one. My
solution so far was to rename the *6*.* DLLs and EXEs to *7*.*,
overwriting the existing ones. Rebuilding my application led to a
working one. Is there a was for python to eximine what VC version was
used for compiling, so "Build.py" could choose the correct loader from
the VC version actually used for building python instead of guessing
by the actual python versuion?

Kind regards

Berthold Höllmann
-- 
Germanischer Lloyd AG
CAE Development
Vorsetzen 35
20459 Hamburg
Phone: +49(0)40 36149-7374
Fax: +49(0)40 36149-7320
e-mail: [EMAIL PROTECTED]
Internet: http://www.gl-group.com



This e-mail and any attachment thereto may contain confidential information 
and/or information protected by intellectual property rights for the exclusive 
attention of the intended addressees named above. Any access of third parties 
to this e-mail is unauthorised. Any use of this e-mail by unintended recipients 
such as total or partial copying, distribution, disclosure etc. is prohibited 
and may be unlawful. When addressed to our clients the content of this e-mail 
is subject to the General Terms and Conditions of GL's Group of Companies 
applicable at the date of this e-mail. 

If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer.

GL's Group of Companies does not warrant and/or guarantee that this message at 
the moment of receipt is authentic, correct and its communication free of 
errors, interruption etc.

_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to