From 3171fa25404c417f9464c586d85123d736c2143e Mon Sep 17 00:00:00 2001 From: Martijn Govers Date: Fri, 13 Dec 2024 12:50:00 +0100 Subject: [PATCH] libboost-headers from pypi Signed-off-by: Martijn Govers --- pyproject.toml | 1 + setup.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d3c9d9813..6c5b98edd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,7 @@ requires = [ "pybuild-header-dependency", "msgpack-cxx", "nlohmann-json", + "libboost-headers" ] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 82a63d362..742182ec2 100644 --- a/setup.py +++ b/setup.py @@ -30,10 +30,11 @@ def get_required_dependency_include() -> list[str]: either empty list or a list of header path """ try: + import libboost_headers import msgpack_cxx import nlohmann_json - return [str(msgpack_cxx.get_include()), str(nlohmann_json.get_include())] + return [str(msgpack_cxx.get_include()), str(nlohmann_json.get_include()), str(libboost_headers.get_include())] except ImportError: return [] @@ -48,7 +49,7 @@ def get_pre_installed_header_include() -> list[str]: try: from pybuild_header_dependency import HeaderResolver - resolver = HeaderResolver({"eigen": None, "boost": None}) + resolver = HeaderResolver({"eigen": None}) return [str(resolver.get_include())] except ImportError: return []