Skip to content

Commit 75c1176

Browse files
committed
Revert "fix: quote paths from pybind11-config (#5302)" (#5309)
This reverts commit 8d9f4d5.
1 parent 6685547 commit 75c1176

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pybind11/__main__.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from __future__ import annotations
33

44
import argparse
5-
import shlex
65
import sys
76
import sysconfig
87

@@ -23,7 +22,7 @@ def print_includes() -> None:
2322
if d and d not in unique_dirs:
2423
unique_dirs.append(d)
2524

26-
print(" ".join(shlex.quote(f"-I{d}") for d in unique_dirs))
25+
print(" ".join("-I" + d for d in unique_dirs))
2726

2827

2928
def main() -> None:
@@ -55,9 +54,9 @@ def main() -> None:
5554
if args.includes:
5655
print_includes()
5756
if args.cmakedir:
58-
print(shlex.quote(get_cmake_dir()))
57+
print(get_cmake_dir())
5958
if args.pkgconfigdir:
60-
print(shlex.quote(get_pkgconfig_dir()))
59+
print(get_pkgconfig_dir())
6160

6261

6362
if __name__ == "__main__":

0 commit comments

Comments
 (0)