Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [PATCH meta-python 1/2] python-protobuf: disable clean
@ 2018-07-09 10:49 Ross Burton
  2018-07-09 10:49 ` [PATCH meta-python 2/2] python-panda: add cython to DEPENDS Ross Burton
  0 siblings, 1 reply; 2+ messages in thread
From: Ross Burton @ 2018-07-09 10:49 UTC (permalink / raw)
  To: openembedded-devel

The distutils class does a 'setup.py clean' but this breaks the protobuf build:

| Can't find required file: ../src/google/protobuf/descriptor.proto
| Generating google/protobuf/descriptor_pb2.py...
| ERROR: python3 setup.py build_ext execution failed.

Disable the clean to work around this.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta-python/recipes-devtools/python/python-protobuf.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-protobuf.inc b/meta-python/recipes-devtools/python/python-protobuf.inc
index 6a0568ae62..421775d394 100644
--- a/meta-python/recipes-devtools/python/python-protobuf.inc
+++ b/meta-python/recipes-devtools/python/python-protobuf.inc
@@ -25,3 +25,5 @@ RDEPENDS_${PN} += " \
 
 # For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools)
 BBCLASSEXTEND = "native"
+
+CLEANBROKEN = "1"
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH meta-python 2/2] python-panda: add cython to DEPENDS
  2018-07-09 10:49 [PATCH meta-python 1/2] python-protobuf: disable clean Ross Burton
@ 2018-07-09 10:49 ` Ross Burton
  0 siblings, 0 replies; 2+ messages in thread
From: Ross Burton @ 2018-07-09 10:49 UTC (permalink / raw)
  To: openembedded-devel

The distutils class does a 'setup.py clean' now, deleting files which then need
to be regenerated.  Add Cython to the build dependencies so this can be done.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta-python/recipes-devtools/python/python-pandas.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python-pandas.inc b/meta-python/recipes-devtools/python/python-pandas.inc
index a08f1c2861..9b8e4dcf18 100644
--- a/meta-python/recipes-devtools/python/python-pandas.inc
+++ b/meta-python/recipes-devtools/python/python-pandas.inc
@@ -12,7 +12,7 @@ SRC_URI[sha256sum] = "50b52af2af2e15f4aeb2fe196da073a8c131fa02e433e105d95ce40016
 inherit pypi
 
 DEPENDS += " \
-    ${PYTHON_PN}-numpy-native \
+    ${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \
 "
 
 RDEPENDS_${PN} += " \
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-09 10:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-09 10:49 [PATCH meta-python 1/2] python-protobuf: disable clean Ross Burton
2018-07-09 10:49 ` [PATCH meta-python 2/2] python-panda: add cython to DEPENDS Ross Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox