* [RFC/PATCH] boost: Fix issue with python-numpy
@ 2017-03-04 16:26 Moritz Fischer
2017-03-06 12:23 ` Burton, Ross
0 siblings, 1 reply; 4+ messages in thread
From: Moritz Fischer @ 2017-03-04 16:26 UTC (permalink / raw)
To: openembedded-core; +Cc: mdf
Boost 1.63 merged Boost.Python numpy support, however there
are no configuration options to turn it off or on.
If PACKAGECONFIG[python] is enabled, now depend on python-numpy
and python3-numpy.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
---
Hi all,
I'm not sure if this is the entirely correct fix.
I've seen other places like gentoo ([1]) simply patch out the
numpy support to get earlier behavior.
Maybe making it another PACKAGECONFIG[numpy] option
would be desirable?
Cheers,
Moritz
[1] http://bit.ly/2m7WBRW
---
meta/recipes-support/boost/boost.inc | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index 87b6b88..7b55132 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -42,13 +42,13 @@ PACKAGECONFIG ??= "locale"
PACKAGECONFIG[locale] = ",,icu"
PACKAGECONFIG[graph_parallel] = ",,,boost-mpi mpich"
PACKAGECONFIG[mpi] = ",,mpich"
-PACKAGECONFIG[python] = ",,python python3"
+PACKAGECONFIG[python] = ",,python python3 python-numpy python3-numpy"
BOOST_LIBS += "\
${@bb.utils.filter('PACKAGECONFIG', 'locale', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'graph_parallel', 'graph_parallel mpi', \
bb.utils.filter('PACKAGECONFIG', 'mpi', d), d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python python3', '', d)} \
+ ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python python3 numpy numpy3', '', d)} \
"
inherit python-dir
@@ -61,7 +61,8 @@ python __anonymous () {
extras = []
for lib in d.getVar('BOOST_LIBS').split( ):
# BJAM does not know '--with-python3' (only --with-python)
- if lib != "python3":
+ # the same goes for numpy and numpy3
+ if (lib != "python3") and (lib != "numpy") and (lib != "numpy3"):
extras.append("--with-%s" % lib)
pkg = "boost-%s" % lib.replace("_", "-")
packages.append(pkg)
@@ -69,6 +70,9 @@ python __anonymous () {
# special: python*.so matches python3.so !!
if not d.getVar("FILES_%s" % pkg):
d.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s.so.*" % lib)
+ elif(lib == "numpy"):
+ if not d.getVar("FILES_%s" % pkg):
+ d.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s.so.*" % lib)
else:
if not d.getVar("FILES_%s" % pkg):
d.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s*.so.*" % lib)
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [RFC/PATCH] boost: Fix issue with python-numpy
2017-03-04 16:26 [RFC/PATCH] boost: Fix issue with python-numpy Moritz Fischer
@ 2017-03-06 12:23 ` Burton, Ross
2017-03-06 19:58 ` Moritz Fischer
0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2017-03-06 12:23 UTC (permalink / raw)
To: Moritz Fischer; +Cc: mdf, OE-core
[-- Attachment #1: Type: text/plain, Size: 223 bytes --]
On 4 March 2017 at 16:26, Moritz Fischer <moritz.fischer@ettus.com> wrote:
> Maybe making it another PACKAGECONFIG[numpy] option
> would be desirable?
>
Making another option would definitely be desirable.
Ross
[-- Attachment #2: Type: text/html, Size: 636 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC/PATCH] boost: Fix issue with python-numpy
2017-03-06 12:23 ` Burton, Ross
@ 2017-03-06 19:58 ` Moritz Fischer
2017-03-07 17:33 ` Burton, Ross
0 siblings, 1 reply; 4+ messages in thread
From: Moritz Fischer @ 2017-03-06 19:58 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
Ross,
On Mon, Mar 6, 2017 at 1:23 PM, Burton, Ross <ross.burton@intel.com> wrote:
> Making another option would definitely be desirable.
So would you apply the patch to remove it if not PACKAGECONFIG[numpy]?
Cheers,
Moritz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC/PATCH] boost: Fix issue with python-numpy
2017-03-06 19:58 ` Moritz Fischer
@ 2017-03-07 17:33 ` Burton, Ross
0 siblings, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2017-03-07 17:33 UTC (permalink / raw)
To: Moritz Fischer; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
On 6 March 2017 at 19:58, Moritz Fischer <moritz.fischer@ettus.com> wrote:
> > Making another option would definitely be desirable.
>
> So would you apply the patch to remove it if not PACKAGECONFIG[numpy]?
>
Depends on how the patch is implemented. You might need to patch the build
configuration to expose an option.
Ross
[-- Attachment #2: Type: text/html, Size: 723 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-07 17:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-04 16:26 [RFC/PATCH] boost: Fix issue with python-numpy Moritz Fischer
2017-03-06 12:23 ` Burton, Ross
2017-03-06 19:58 ` Moritz Fischer
2017-03-07 17:33 ` Burton, Ross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.