File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ env_dict={
3
3
'PADDLE_SOURCE_DIR':'@PADDLE_SOURCE_DIR@',
4
4
'PADDLE_VERSION':'@PADDLE_VERSION@',
5
5
'PADDLE_BINARY_DIR':'@PADDLE_BINARY_DIR@',
6
- 'TAG_VERSION_REGEX':'@TAG_VERSION_REGEX@',
6
+ 'TAG_VERSION_REGEX':r '@TAG_VERSION_REGEX@',
7
7
'WITH_GPU':'@WITH_GPU@',
8
8
'WITH_NCCL':'@WITH_NCCL@',
9
9
'CUDNN_MAJOR_VERSION':'@CUDNN_MAJOR_VERSION@',
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def _get_version_detail(idx):
43
43
assert idx < 3, "vesion info consists of %(major)d.%(minor)d.%(patch)d, \
44
44
so detail index must less than 3"
45
45
46
- if re.match('@TAG_VERSION_REGEX@', '@PADDLE_VERSION@'):
46
+ if re.match(r '@TAG_VERSION_REGEX@', '@PADDLE_VERSION@'):
47
47
version_details = '@PADDLE_VERSION@'.split('.')
48
48
49
49
if len(version_details) >= 3:
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def _get_version_detail(idx):
27
27
assert idx < 3, "vesion info consists of %(major)d.%(minor)d.%(patch)d, \
28
28
so detail index must less than 3"
29
29
30
- if re.match('${TAG_VERSION_REGEX}', '${PADDLE_VERSION}'):
30
+ if re.match(r '${TAG_VERSION_REGEX}', '${PADDLE_VERSION}'):
31
31
version_details = '${PADDLE_VERSION}'.split('.')
32
32
33
33
if len(version_details) >= 3:
You can’t perform that action at this time.
0 commit comments