Show
Ignore:
Timestamp:
10/08/08 18:32:02 (3 months ago)
Author:
RD
Message:

Build tweaks for Python 2.6

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wxPython/branches/WX_2_8_BRANCH/distrib/make_installer.py

    r56029 r56175  
    202202Source: "wxPython\tools\*.py";                    DestDir: "{app}\%(PKGDIR)s\wxPython\tools"; Components: core 
    203203 
    204  
    205 Source: "src\winxp.manifest";               DestDir: "{code:GetPythonDir}"; DestName: "python.exe.manifest";   Flags: sharedfile; Components:  manifest 
    206 Source: "src\winxp.manifest";               DestDir: "{code:GetPythonDir}"; DestName: "pythonw.exe.manifest";  Flags: sharedfile; Components: manifest 
     204%(MANIFEST)s 
     205 
    207206Source: "wxversion\wxversion.py";           DestDir: "{app}";  Flags: sharedfile;  Components: core 
    208207Source: "wxaddons\*.py";                    DestDir: "{app}\wxaddons";  Flags: sharedfile;  Components: core 
     
    707706        # Just hard-code it for now until a good solution for finding 
    708707        # the right dumpbin can be found... 
    709         return '28uh', '2.5' 
    710  
     708        return '28uh', sys.version[:3] 
     709         
    711710    WXDLLVER = PYTHONVER = None 
    712711 
     
    764763def get_runtime_dlls(PYVER, PKGDIR): 
    765764    if os.environ.get('CPU', '') == 'AMD64': 
    766         # For now just pull the DLLs from the system dir, and install 
    767         # them there.  We may eventually want to get more customized 
    768         # like on win32. 
    769         return ( 
    770             r'Source: "{sys}\MSVCRT.DLL"; DestDir: "{sys}"; Flags: 64bit uninsneveruninstall external; Components: core', 
    771             r'Source: "{sys}\MSVCP60.DLL"; DestDir: "{sys}"; Flags: 64bit uninsneveruninstall external; Components: core', 
    772             ) 
    773      
    774     if PYVER >= "py24": 
    775         return ( runtime_template1 % dict(name=r"distrib\msw\msvcr71.dll", PKGDIR=PKGDIR), 
    776                  runtime_template2 % dict(name=r"distrib\msw\msvcp71.dll", PKGDIR=PKGDIR) ) 
     765        if PYVER == 'py25': 
     766            # For now just pull the DLLs from the system dir, and install 
     767            # them there.  We may eventually want to get more customized 
     768            # like on win32. 
     769            return ( 
     770                r'Source: "{sys}\MSVCRT.DLL"; DestDir: "{sys}"; Flags: 64bit uninsneveruninstall external; Components: core', 
     771                r'Source: "{sys}\MSVCP60.DLL"; DestDir: "{sys}"; Flags: 64bit uninsneveruninstall external; Components: core', 
     772                ) 
     773        else: 
     774            # Since Python 2.6+ uses MSVC 9 then the SxS assemblies 
     775            # for the CRT will already be installed, so we can not 
     776            # bother with installing it ourselves. 
     777            return ('', '') 
     778         
    777779    else: 
    778         return (  runtime_template1 % dict(name=r"distrib\msw\MSVCRT.dll", PKGDIR=PKGDIR), 
    779                   runtime_template2 % dict(name=r"distrib\msw\MSVCIRT.dll", PKGDIR=PKGDIR) + "\n" + 
    780                   runtime_template2 % dict(name=r"distrib\msw\MSVCP60.dll", PKGDIR=PKGDIR) ) 
     780        if PYVER >= "py24": 
     781            return ( runtime_template1 % dict(name=r"distrib\msw\msvcr71.dll", PKGDIR=PKGDIR), 
     782                     runtime_template2 % dict(name=r"distrib\msw\msvcp71.dll", PKGDIR=PKGDIR) ) 
     783        else: 
     784            return (  runtime_template1 % dict(name=r"distrib\msw\MSVCRT.dll", PKGDIR=PKGDIR), 
     785                      runtime_template2 % dict(name=r"distrib\msw\MSVCIRT.dll", PKGDIR=PKGDIR) + "\n" + 
     786                      runtime_template2 % dict(name=r"distrib\msw\MSVCP60.dll", PKGDIR=PKGDIR) ) 
    781787 
    782788 
     
    815821        BITS        = '32' 
    816822        VCDLLDIR    = 'vc_dll' 
    817         GDIPLUS     = 'Source: "distrib\msw\gdiplus.dll"; DestDir: "{app}\%(PKGDIR)s\wx"; Components: core; Flags: replacesameversion' 
     823        GDIPLUS     = 'Source: "distrib\msw\gdiplus.dll"; DestDir: "{app}\%(PKGDIR)s\wx"; Components: core; Flags: replacesameversion' % vars() 
    818824        ARCH        = '' 
    819825        PRIV        = 'none' 
     826 
     827    if PYVER <= 'py25': 
     828        MANIFEST = 'Source: "src\winxp.manifest"; DestDir: "{code:GetPythonDir}"; DestName: "python.exe.manifest";  Flags: sharedfile; Components: manifest\n' + \ 
     829                   'Source: "src\winxp.manifest"; DestDir: "{code:GetPythonDir}"; DestName: "pythonw.exe.manifest"; Flags: sharedfile; Components: manifest\n' 
     830    else: 
     831        MANIFEST = 'Source: "src\winxp.vc9.manifest"; DestDir: "{code:GetPythonDir}"; DestName: "python.exe.manifest";  Flags: sharedfile; Components: manifest\n' + \ 
     832                   'Source: "src\winxp.vc9.manifest"; DestDir: "{code:GetPythonDir}"; DestName: "pythonw.exe.manifest"; Flags: sharedfile; Components: manifest\n' 
    820833 
    821834