* [Buildroot] [PATCH] python-libconfig: fix Python3 build
@ 2017-07-27 8:45 yegorslists at googlemail.com
2017-07-29 13:16 ` Thomas Petazzoni
2017-09-04 7:04 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: yegorslists at googlemail.com @ 2017-07-27 8:45 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
boost_python library is named boost_python3, if boost is built
under Python3 environment. The patch fixes setup.py accordingly.
Fixes:
http://autobuild.buildroot.net/results/975/97533965180436c2f7a99de07fdc360ef57f84b0
http://autobuild.buildroot.net/results/b49/b49de32704f0f7ce5a610cf4363c6dcc2d8bafa1
http://autobuild.buildroot.net/results/e26/e26b4b9b486c582fb55826817a3428569968320f
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
...oost_python-name-depending-on-current-Pyt.patch | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 package/python-libconfig/0001-Determine-boost_python-name-depending-on-current-Pyt.patch
diff --git a/package/python-libconfig/0001-Determine-boost_python-name-depending-on-current-Pyt.patch b/package/python-libconfig/0001-Determine-boost_python-name-depending-on-current-Pyt.patch
new file mode 100644
index 000000000..b30efc124
--- /dev/null
+++ b/package/python-libconfig/0001-Determine-boost_python-name-depending-on-current-Pyt.patch
@@ -0,0 +1,40 @@
+From 3bc4b9c0d60a735b1d63e52f74492ace39f02824 Mon Sep 17 00:00:00 2001
+From: Yegor Yefremov <yegorslists@googlemail.com>
+Date: Thu, 27 Jul 2017 09:46:07 +0200
+Subject: [PATCH] Determine boost_python name depending on current Python
+ version
+
+Python2 requires boost_python and Python3 requires boost_python3.
+
+Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
+---
+ setup.py | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index fdf5c27..4b38569 100644
+--- a/setup.py
++++ b/setup.py
+@@ -3,6 +3,10 @@
+ from setuptools import setup, find_packages, Extension
+ import sys, os
+
++boostlib = "boost_python3"
++if sys.version_info < (3, 0):
++ boostlib = "boost_python"
++
+ setup(
+ name = 'pylibconfig',
+ description = "libconfig bindings for Python",
+@@ -19,7 +23,7 @@ setup(
+ Extension(
+ "pylibconfig",
+ ["src/pylibconfig.cc"],
+- libraries=["boost_python", "config++"]
++ libraries=[boostlib, "config++"]
+ #include_dirs=includes,
+ #extra_link_args=lflags
+ )
+--
+2.11.0
+
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] python-libconfig: fix Python3 build
2017-07-27 8:45 [Buildroot] [PATCH] python-libconfig: fix Python3 build yegorslists at googlemail.com
@ 2017-07-29 13:16 ` Thomas Petazzoni
2017-09-04 7:04 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-07-29 13:16 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 27 Jul 2017 10:45:15 +0200, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> boost_python library is named boost_python3, if boost is built
> under Python3 environment. The patch fixes setup.py accordingly.
>
> Fixes:
> http://autobuild.buildroot.net/results/975/97533965180436c2f7a99de07fdc360ef57f84b0
> http://autobuild.buildroot.net/results/b49/b49de32704f0f7ce5a610cf4363c6dcc2d8bafa1
> http://autobuild.buildroot.net/results/e26/e26b4b9b486c582fb55826817a3428569968320f
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> ...oost_python-name-depending-on-current-Pyt.patch | 40 ++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 package/python-libconfig/0001-Determine-boost_python-name-depending-on-current-Pyt.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] python-libconfig: fix Python3 build
2017-07-27 8:45 [Buildroot] [PATCH] python-libconfig: fix Python3 build yegorslists at googlemail.com
2017-07-29 13:16 ` Thomas Petazzoni
@ 2017-09-04 7:04 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-09-04 7:04 UTC (permalink / raw)
To: buildroot
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> boost_python library is named boost_python3, if boost is built
> under Python3 environment. The patch fixes setup.py accordingly.
> Fixes:
> http://autobuild.buildroot.net/results/975/97533965180436c2f7a99de07fdc360ef57f84b0
> http://autobuild.buildroot.net/results/b49/b49de32704f0f7ce5a610cf4363c6dcc2d8bafa1
> http://autobuild.buildroot.net/results/e26/e26b4b9b486c582fb55826817a3428569968320f
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Committed to 2017.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-04 7:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-27 8:45 [Buildroot] [PATCH] python-libconfig: fix Python3 build yegorslists at googlemail.com
2017-07-29 13:16 ` Thomas Petazzoni
2017-09-04 7:04 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox