From 919563abb4b55faa178b039073f3ce1be6ce7267 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 20 Jun 2026 15:53:36 +0200 Subject: [PATCH] Enable pip install on macOS --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 93d6cf0f..6b03c0f4 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,9 @@ from distutils.core import setup, Extension from distutils.sysconfig import get_config_var, get_python_lib, get_python_version +if not os.environ.get("PKG_CONFIG_PATH"): # See `python3.14 -m sysconfig | grep LIBPC` + os.environ["PKG_CONFIG_PATH"] = get_config_var("LIBPC") + if os.path.isfile("MANIFEST"): os.unlink("MANIFEST")