diff mbox series

[oe,meta-python,1/2] python-protobuf: disable clean

Message ID 20180709104933.24607-1-ross.burton@intel.com
State Superseded
Headers show
Series [oe,meta-python,1/2] python-protobuf: disable clean | expand

Commit Message

Ross Burton July 9, 2018, 10:49 a.m. UTC
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(+)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

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"