Skip to content

Commit

Permalink
use modern boost+python paths
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Dec 28, 2024
1 parent 1b25daf commit d583819
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions codepy/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,18 @@ def get_boost_libname(basename: str, aksetup: Config) -> list[str]:


def add_boost_python(toolchain: Toolchain) -> None:
aksetup = get_aksetup_config()
import sys

aksetup = get_aksetup_config()
version = sys.version_info[:2]

toolchain.add_library(
"boost-python",
getlist(aksetup, "BOOST_INC_DIR", []),
getlist(aksetup, "BOOST_LIB_DIR", []),
[
*get_boost_libname("python-py{}{}".format(*sys.version_info[:2]),
aksetup),
"python{}.{}{}".format(
*sys.version_info[:2],
"m" if sys.version_info[0] >= 3 else "")
*get_boost_libname("python{}{}".format(*version), aksetup),
"python{}.{}{}".format(*version, sys.abiflags),
])


Expand Down

0 comments on commit d583819

Please sign in to comment.