Skip to content

Commit

Permalink
Revert "fix: quote paths from pybind11-config (#5302)"
Browse files Browse the repository at this point in the history
This reverts commit 8d9f4d5.
  • Loading branch information
henryiii authored Aug 14, 2024
1 parent 0116906 commit 17e20a9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pybind11/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from __future__ import annotations

import argparse
import shlex
import sys
import sysconfig

Expand All @@ -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:
Expand Down Expand Up @@ -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__":
Expand Down

0 comments on commit 17e20a9

Please sign in to comment.