gpanders / meta-scipy

OpenEmbedded layer for scipy (ARCHIVED)
https://github.com/tuxable-ltd/meta-scipy
MIT License
18 stars 23 forks source link

scipy: Added extra recipe for native package #16

Open nandra opened 3 years ago

nandra commented 3 years ago

Signed-off-by: Marek Belisko marek.belisko@gmail.com

nandra commented 3 years ago

Same as #15 just for master

nandra commented 3 years ago

Original native recipe doesn't build on dunfell. I fails with some strange error which was caused by some cross-compilation flags. I basically extracted it and drop one flag + setup proper DEPENDS native flags.

gpanders commented 3 years ago

You can use overrides to set variables differently based on whether or not you're building the native package:

DEPENDS_class-native = "..."

FARCH = "${TUNE_CCARGS}"
FARCH_class-native = ""

export FARCH

This is preferable to having two separate recipes. There are plenty of examples of this in the poky repo and in the meta-openembedded layer.

nandra commented 3 years ago

Yes I know. I was in hurry to compile scikit-learn so this was the first shot which works. Thanks for comments I'll give a try what was suggested and post an update. :+1:

nandra commented 3 years ago

@gpanders strange it seems that yesterday I have scipy-native somehow cached because today wiped out caches and it's failing. So I suggest to revert #15 or can someone test it pls? If it fails pls revert. Thanks.