Changeset 836

Show
Ignore:
Timestamp:
08/18/08 17:21:17 (4 months ago)
Author:
hobu
Message:

better version detection

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/python/setup.py

    r822 r836  
    1010import os 
    1111 
    12 version = file('../nmake.opt').readline().strip() 
    13 version = version.split('=')[1] 
     12opt = file('../nmake.opt','rb') 
     13for line in opt: 
     14    line = line.strip() 
     15    if line.startswith('PACKAGE_VERSION'): 
     16         
     17        version = line.split('=')[1] 
    1418 
    1519if os.name == 'nt':