From 17e20a971a41fc6783dcc77b43d6cb84fe7e6aa3 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 14 Aug 2024 12:21:40 -0400 Subject: [PATCH] Revert "fix: quote paths from pybind11-config (#5302)" This reverts commit 8d9f4d50cc7baa461365e977a0645c6c0d7b1b12. --- pybind11/__main__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pybind11/__main__.py b/pybind11/__main__.py index dadf24f3cb..b656ce6fee 100644 --- a/pybind11/__main__.py +++ b/pybind11/__main__.py @@ -2,7 +2,6 @@ from __future__ import annotations import argparse -import shlex import sys import sysconfig @@ -23,7 +22,7 @@ def print_includes() -> None: if d and d not in unique_dirs: unique_dirs.append(d) - print(" ".join(shlex.quote(f"-I{d}") for d in unique_dirs)) + print(" ".join("-I" + d for d in unique_dirs)) def main() -> None: @@ -55,9 +54,9 @@ def main() -> None: if args.includes: print_includes() if args.cmakedir: - print(shlex.quote(get_cmake_dir())) + print(get_cmake_dir()) if args.pkgconfigdir: - print(shlex.quote(get_pkgconfig_dir())) + print(get_pkgconfig_dir()) if __name__ == "__main__":