Berthold Höllmann <[EMAIL PROTECTED]> wrote: > 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?
Distutils has some code for this: >>> from distutils.msvccompiler import get_build_version >>> print get_build_version() 7.1 But I don't know how general this solution is. For one, it doesn't handle other compilers. I believe the long time solution is the same of other similar installation issues: when PyInstaller is a regular distutil package, you'll get the source distribution and rebuild it on your system. distutils will then pick up the correct compiler and everything will be fine. -- Giovanni Bajo _______________________________________________ PyInstaller mailing list [email protected] http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller
