1 From 3bc4b9c0d60a735b1d63e52f74492ace39f02824 Mon Sep 17 00:00:00 2001
2 From: Yegor Yefremov <yegorslists@googlemail.com>
3 Date: Thu, 27 Jul 2017 09:46:07 +0200
4 Subject: [PATCH] Determine boost_python name depending on current Python
7 Python2 requires boost_python and Python3 requires boost_python3.
9 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
12 1 file changed, 5 insertions(+), 1 deletion(-)
14 diff --git a/setup.py b/setup.py
15 index fdf5c27..4b38569 100644
19 from setuptools import setup, find_packages, Extension
22 +boostlib = "boost_python3"
23 +if sys.version_info < (3, 0):
24 + boostlib = "boost_python"
28 description = "libconfig bindings for Python",
29 @@ -19,7 +23,7 @@ setup(
32 ["src/pylibconfig.cc"],
33 - libraries=["boost_python", "config++"]
34 + libraries=[boostlib, "config++"]
35 #include_dirs=includes,
36 #extra_link_args=lflags