Skip to content

Commit

Permalink
Merge pull request #25670 from charris/backport-25669
Browse files Browse the repository at this point in the history
BLD: fix potential issue with escape sequences in ``__config__.py``
  • Loading branch information
charris committed Jan 23, 2024
2 parents 1d50085 + cb3171c commit e48572e
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions numpy/__config__.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,27 @@ CONFIG = _cleanup(
"Compilers": {
"c": {
"name": "@C_COMP@",
"linker": "@C_COMP_LINKER_ID@",
"linker": r"@C_COMP_LINKER_ID@",
"version": "@C_COMP_VERSION@",
"commands": "@C_COMP_CMD_ARRAY@",
"commands": r"@C_COMP_CMD_ARRAY@",
"args": r"@C_COMP_ARGS@",
"linker args": r"@C_COMP_LINK_ARGS@",
},
"cython": {
"name": "@CYTHON_COMP@",
"linker": "@CYTHON_COMP_LINKER_ID@",
"linker": r"@CYTHON_COMP_LINKER_ID@",
"version": "@CYTHON_COMP_VERSION@",
"commands": "@CYTHON_COMP_CMD_ARRAY@",
"commands": r"@CYTHON_COMP_CMD_ARRAY@",
"args": r"@CYTHON_COMP_ARGS@",
"linker args": r"@CYTHON_COMP_LINK_ARGS@",
},
"c++": {
"name": "@CPP_COMP@",
"linker": "@CPP_COMP_LINKER_ID@",
"linker": r"@CPP_COMP_LINKER_ID@",
"version": "@CPP_COMP_VERSION@",
"commands": "@CPP_COMP_CMD_ARRAY@",
"commands": r"@CPP_COMP_CMD_ARRAY@",
"args": r"@CPP_COMP_ARGS@",
"linker args": r"@CPP_COMP_LINK_ARGS@",
},
},
"Machine Information": {
Expand All @@ -72,7 +78,7 @@ CONFIG = _cleanup(
"detection method": "@BLAS_TYPE_NAME@",
"include directory": r"@BLAS_INCLUDEDIR@",
"lib directory": r"@BLAS_LIBDIR@",
"openblas configuration": "@BLAS_OPENBLAS_CONFIG@",
"openblas configuration": r"@BLAS_OPENBLAS_CONFIG@",
"pc file directory": r"@BLAS_PCFILEDIR@",
},
"lapack": {
Expand All @@ -82,7 +88,7 @@ CONFIG = _cleanup(
"detection method": "@LAPACK_TYPE_NAME@",
"include directory": r"@LAPACK_INCLUDEDIR@",
"lib directory": r"@LAPACK_LIBDIR@",
"openblas configuration": "@LAPACK_OPENBLAS_CONFIG@",
"openblas configuration": r"@LAPACK_OPENBLAS_CONFIG@",
"pc file directory": r"@LAPACK_PCFILEDIR@",
},
},
Expand Down

0 comments on commit e48572e

Please sign in to comment.