8000 Merge pull request #25669 from rgommers/raw-strings-configpy · numpy/numpy@ceeeab1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ceeeab1

Browse files
authored
Merge pull request #25669 from rgommers/raw-strings-configpy
BLD: fix potential issue with escape sequences in `__config__.py`
2 parents 1d0edc1 + d4a20da commit ceeeab1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

numpy/__config__.py.in

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,27 @@ CONFIG = _cleanup(
3232
"Compilers": {
3333
"c": {
3434
"name": "@C_COMP@",
35-
"linker": "@C_COMP_LINKER_ID@",
35+
"linker": r"@C_COMP_LINKER_ID@",
3636
"version": "@C_COMP_VERSION@",
37-
"commands": "@C_COMP_CMD_ARRAY@",
38-
"args": "@C_COMP_ARGS@",
39-
"linker args": "@C_COMP_LINK_ARGS@",
37+
"commands": r"@C_COMP_CMD_ARRAY@",
38+
"args": r"@C_COMP_ARGS@",
39+
"linker args": r"@C_COMP_LINK_ARGS@",
4040
},
4141
"cython": {
4242
"name": "@CYTHON_COMP@",
43-
"linker": "@CYTHON_COMP_LINKER_ID@",
43+
"linker": r"@CYTHON_COMP_LINKER_ID@",
4444
"version": "@CYTHON_COMP_VERSION@",
45-
"commands": "@CYTHON_COMP_CMD_ARRAY@",
46-
"args": "@CYTHON_COMP_ARGS@",
47-
"linker args": "@CYTHON_COMP_LINK_ARGS@",
45+
"commands": r"@CYTHON_COMP_CMD_ARRAY@",
46+
"args": r"@CYTHON_COMP_ARGS@",
47+
"linker args": r"@CYTHON_COMP_LINK_ARGS@",
4848
},
4949
"c++": {
5050
"name": "@CPP_COMP@",
51-
"linker": "@CPP_COMP_LINKER_ID@",
51+
"linker": r"@CPP_COMP_LINKER_ID@",
5252
"version": "@CPP_COMP_VERSION@",
53-
"commands": "@CPP_COMP_CMD_ARRAY@",
54-
"args": "@CPP_COMP_ARGS@",
55-
"linker args": "@CPP_COMP_LINK_ARGS@",
53+
"commands": r"@CPP_COMP_CMD_ARRAY@",
54+
"args": r"@CPP_COMP_ARGS@",
55+
"linker args": r"@CPP_COMP_LINK_ARGS@",
5656
},
5757
},
5858
"Machine Information": {
@@ -78,7 +78,7 @@ CONFIG = _cleanup(
7878
"detection method": "@BLAS_TYPE_NAME@",
7979
"include directory": r"@BLAS_INCLUDEDIR@",
8080
"lib directory": r"@BLAS_LIBDIR@",
81-
"openblas configuration": "@BLAS_OPENBLAS_CONFIG@",
81+
"openblas configuration": r"@BLAS_OPENBLAS_CONFIG@",
8282
"pc file directory": r"@BLAS_PCFILEDIR@",
8383
},
8484
"lapack": {
@@ -88,7 +88,7 @@ CONFIG = _cleanup(
8888
"detection method": "@LAPACK_TYPE_NAME@",
8989
"include directory": r"@LAPACK_INCLUDEDIR@",
9090
"lib directory": r"@LAPACK_LIBDIR@",
91-
"openblas configuration": "@LAPACK_OPENBLAS_CONFIG@",
91+
"openblas configuration": r"@LAPACK_OPENBLAS_CONFIG@",
9292
"pc file directory": r"@LAPACK_PCFILEDIR@",
9393
},
9494
},

0 commit comments

Comments
 (0)
0