Revert "fix: quote paths from pybind11-config (#5302)" (#5309)

This reverts commit 8d9f4d50cc.
This commit is contained in:
Henry Schreiner 2024-08-14 12:36:45 -04:00 committed by GitHub
parent 0116906189
commit fc97cc41d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,6 @@
from __future__ import annotations from __future__ import annotations
import argparse import argparse
import shlex
import sys import sys
import sysconfig import sysconfig
@ -23,7 +22,7 @@ def print_includes() -> None:
if d and d not in unique_dirs: if d and d not in unique_dirs:
unique_dirs.append(d) 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: def main() -> None:
@ -55,9 +54,9 @@ def main() -> None:
if args.includes: if args.includes:
print_includes() print_includes()
if args.cmakedir: if args.cmakedir:
print(shlex.quote(get_cmake_dir())) print(get_cmake_dir())
if args.pkgconfigdir: if args.pkgconfigdir:
print(shlex.quote(get_pkgconfig_dir())) print(get_pkgconfig_dir())
if __name__ == "__main__": if __name__ == "__main__":