Commit 735ec1b
build: fix version checks in gyp files
Make `distutils.version.StrictVersion` available as a helper to
gyp expressions so they can do proper version checks and update
the gyp files accordingly.
Caveat emptor: `StrictVersion` does *not* like empty strings so
this commit adds truthiness guards. The helper could deal with
those but I felt it better to make it explicit.
Fixes: #29927
PR-URL: #29931
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent 8d03013 commit 735ec1bCopy full SHA for 735ec1b
File tree
Expand file treeCollapse file tree
3 files changed
+8
-3
lines changedOpen diff view settings
Filter options
- deps/openssl
- tools/gyp/pylib/gyp
Expand file treeCollapse file tree
3 files changed
+8
-3
lines changedOpen diff view settings
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
| 25 | + |
25 | 26 | |
26 | 27 | |
27 | 28 | |
|
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1036 | 1036 | |
1037 | 1037 | |
1038 | 1038 | |
1039 | | - |
| 1039 | + |
| 1040 | + |
| 1041 | + |
1040 | 1042 | |
1041 | 1043 | |
1042 | 1044 | |
|
Collapse file
tools/gyp/pylib/gyp/input.py
Copy file name to clipboardExpand all lines: tools/gyp/pylib/gyp/input.py+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
| 22 | + |
22 | 23 | |
23 | 24 | |
24 | 25 | |
| ||
1088 | 1089 | |
1089 | 1090 | |
1090 | 1091 | |
1091 | | - |
| 1092 | + |
| 1093 | + |
1092 | 1094 | |
1093 | 1095 | |
1094 | 1096 | |
|
0 commit comments