@@ -17,7 +17,7 @@ def _cleanup(d):
17
17
This ensures we remove values that Meson could not provide to CONFIG
18
18
"""
19
19
if isinstance(d, dict):
20
- return { k: _cleanup(v) for k, v in d.items() if v and _cleanup(v) }
20
+ return { k: _cleanup(v) for k, v in d.items() if v != '' and _cleanup(v) != '' }
21
21
else:
22
22
return d
23
23
@@ -51,7 +51,7 @@ CONFIG = _cleanup(
51
51
},
52
52
"pythran": {
53
53
"version": "@PYTHRAN_VERSION@",
54
- "include directory": "@PYTHRAN_INCDIR@"
54
+ "include directory": r "@PYTHRAN_INCDIR@"
55
55
},
56
56
},
57
57
"Machine Information": {
@@ -67,32 +67,32 @@ CONFIG = _cleanup(
67
67
"endian": "@BUILD_CPU_ENDIAN@",
68
68
"system": "@BUILD_CPU_SYSTEM@",
69
69
},
70
- "cross-compiled": "@CROSS_COMPILED@",
70
+ "cross-compiled": bool( "@CROSS_COMPILED@".lower().replace('false', '')) ,
71
71
},
72
72
"Build Dependencies": {
73
73
"blas": {
74
74
"name": "@BLAS_NAME@",
75
- "found": "@BLAS_FOUND@",
75
+ "found": bool( "@BLAS_FOUND@".lower().replace('false', '')) ,
76
76
"version": "@BLAS_VERSION@",
77
77
"detection method": "@BLAS_TYPE_NAME@",
78
- "include directory": "@BLAS_INCLUDEDIR@",
79
- "lib directory": "@BLAS_LIBDIR@",
78
+ "include directory": r "@BLAS_INCLUDEDIR@",
79
+ "lib directory": r "@BLAS_LIBDIR@",
80
80
"openblas configuration": "@BLAS_OPENBLAS_CONFIG@",
81
- "pc file directory": "@BLAS_PCFILEDIR@",
81
+ "pc file directory": r "@BLAS_PCFILEDIR@",
82
82
},
83
83
"lapack": {
84
84
"name": "@LAPACK_NAME@",
85
- "found": "@LAPACK_FOUND@",
85
+ "found": bool( "@LAPACK_FOUND@".lower().replace('false', '')) ,
86
86
"version": "@LAPACK_VERSION@",
87
87
"detection method": "@LAPACK_TYPE_NAME@",
88
- "include directory": "@LAPACK_INCLUDEDIR@",
89
- "lib directory": "@LAPACK_LIBDIR@",
88
+ "include directory": r "@LAPACK_INCLUDEDIR@",
89
+ "lib directory": r "@LAPACK_LIBDIR@",
90
90
"openblas configuration": "@LAPACK_OPENBLAS_CONFIG@",
91
- "pc file directory": "@LAPACK_PCFILEDIR@",
91
+ "pc file directory": r "@LAPACK_PCFILEDIR@",
92
92
},
93
93
},
94
94
"Python Information": {
95
- "path": "@PYTHON_PATH@",
95
+ "path": r "@PYTHON_PATH@",
96
96
"version": "@PYTHON_VERSION@",
97
97
},
98
98
}
0 commit comments