Skip to content

Commit

Permalink
Merge pull request #856 from PowerGridModel/feature/libboost-headers-…
Browse files Browse the repository at this point in the history
…from-pypi

get libboost-headers from pypi
  • Loading branch information
mgovers authored Dec 13, 2024
2 parents 45cc5f9 + 3171fa2 commit df078ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ requires = [
"pybuild-header-dependency",
"msgpack-cxx",
"nlohmann-json",
"libboost-headers"
]
build-backend = "setuptools.build_meta"

Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []

Expand All @@ -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 []
Expand Down

0 comments on commit df078ff

Please sign in to comment.