|
|
| 70 |
|
70 |
|
| 71 |
# note: here we disable the VNUM for OSX since it causes problems (bug #1251) |
71 |
# note: here we disable the VNUM for OSX since it causes problems (bug #1251) |
| 72 |
wutils.VNUM = None |
72 |
wutils.VNUM = None |
| 73 |
if sys.platform != 'darwin' and re.match(r"^\d+\.\d+(\.\d+)?$", VERSION) is not None: |
73 |
m = re.match(r"^(\d+)\.(\d+)(?:\.(\d+))?$", VERSION) |
| 74 |
wutils.VNUM = VERSION |
74 |
if m is not None: |
|
|
75 |
MAJOR = int(m.group(1)) |
| 76 |
MINOR = int(m.group(2)) |
| 77 |
if m.group(3) is None: |
| 78 |
MICRO = 0 |
| 79 |
else: |
| 80 |
MICRO = int(m.group(3)) |
| 81 |
if sys.platform != 'darwin' and m is not None: |
| 82 |
wutils.VNUM = "%02i%02i" % (MINOR, MICRO) |
| 83 |
print wutils.VNUM |
| 75 |
|
84 |
|
| 76 |
# these variables are mandatory ('/' are converted automatically) |
85 |
# these variables are mandatory ('/' are converted automatically) |
| 77 |
top = '.' |
86 |
top = '.' |