Changeset bd26a85 in sasview for sansview


Ignore:
Timestamp:
Mar 12, 2012 2:12:21 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
ed2d86e
Parents:
270cc72e
Message:

win32com also works now on 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/setup_exe.py

    r270cc72e rbd26a85  
    3939# Solution taken from here: http://www.py2exe.org/index.cgi/win32com.shell 
    4040# ModuleFinder can't handle runtime changes to __path__, but win32com uses them 
     41win32_folder = "win32com" 
     42if sys.version_info >= (2, 7) or sys.version_info < (2, 6): 
     43    win32_folder = "win32comext" 
    4144try: 
    4245    # py2exe 0.6.4 introduced a replacement modulefinder. 
     
    5154    import win32com, sys 
    5255    for p in win32com.__path__[1:]: 
    53         modulefinder.AddPackagePath("win32com", p) 
     56        modulefinder.AddPackagePath(win32_folder, p) 
    5457    for extra in ["win32com.shell", "win32com.adsi", "win32com.axcontrol", 
    5558                    "win32com.axscript", "win32com.bits", "win32com.ifilter", 
     
    286289# packages 
    287290# 
    288 packages = ['matplotlib', 'scipy', 'pytz', 'encodings', 'comtypes', 'win32com', 'encodings'] 
     291packages = ['matplotlib', 'scipy', 'pytz', 'encodings', 'comtypes', 'win32com'] 
    289292includes = ['site'] 
    290293 
     
    318321    windows=[target_wx_client], 
    319322    console=[], 
    320      
    321323    options={ 
    322324        'py2exe': { 
Note: See TracChangeset for help on using the changeset viewer.