manugarg / pacparser

A library to parse proxy auto-config (PAC) files
http://pacparser.manugarg.com
GNU Lesser General Public License v3.0
506 stars 116 forks source link

installing pacparse with Python 3.13 fails #210

Open pexarkh opened 4 days ago

pexarkh commented 4 days ago

the error is below. Is that b/c pacparser is not compatible with python 3.13? or is it b/c i'm doing something incorrectly? thanks!

> poetry install
Updating dependencies
Resolving dependencies... (0.1s)

Package operations: 1 install, 0 updates, 0 removals

  - Installing pacparser (1.4.5): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel

  running bdist_wheel
  running build
  running build_py
  creating build/lib.macosx-14.0-arm64-cpython-313/pacparser
  copying pacparser/__init__.py -> build/lib.macosx-14.0-arm64-cpython-313/pacparser
  running build_ext
  building '_pacparser' extension
  creating build/temp.macosx-14.0-arm64-cpython-313
  clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I.. -I/private/var/folders/nv/n6bhpcp14dq4pgfyhlsdcv7h0000gn/T/tmpat7goefy/.venv/include -I/opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c pacparser_py.c -o build/temp.macosx-14.0-arm64-cpython-313/pacparser_py.o
  pacparser_py.c:22:10: fatal error: 'pacparser.h' file not found
     22 | #include "pacparser.h"
        |          ^~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1

  at ~/.local/pipx/venvs/poetry/lib/python3.13/site-packages/poetry/installation/chef.py:164 in _prepare
      160│
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│
      163│             if error is not None:
    → 164│                 raise error from None
      165│
      166│             return path
      167│
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path: