Changeset 327

Show
Ignore:
Timestamp:
Fri Nov 16 17:10:02 2007
Author:
danielevarrazzo
Message:

Dependency exclusion implemented with a regular expression.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/bindepend.py

    r326 r327  
    70 70       'GLU32.DLL':1,  
    71 71       'GLUB32.DLL':1,  
    72         '/usr/lib':1,  
    73         '/lib':1,  
    74         '/System/Library/Frameworks':1,}  
      72       '^/usr/lib':1,  
      73       '^/lib':1,  
      74       '^/System/Library/Frameworks':1,  
      75       }  
      76  
      77 excludesRe = re.compile('|'.join(excludes.keys()), re.I)  
    75 78  
    76 79 def getfullnameof(mod, xtrapath = None):  
     
    266 269             if excludes.get(dir,0):  
    267 270                 continue  
    268           if excludes.get(string.upper(lib),0):  
      271         else:  
      272             npth = getfullnameof(lib, os.path.dirname(pth))  
      273         if excludesRe.search(npth):  
    269 274             continue  
    270 275         if seen.get(string.upper(lib),0):  
    271 276             continue  
    272           if iswin or cygwin:  
    273               npth = getfullnameof(lib, os.path.dirname(pth))  
    274 277         if npth:  
    275 278             lTOC.append((lib, npth, 'BINARY'))