Skip to contentSkip to conversation

python-protobuf: disable clean

PATCH New Ross Burton 1 participant 2 messages Jul 9, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-protobuf: disable clean

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.

---
 meta-python/recipes-devtools/python/python-protobuf.inc | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-protobuf.inc +2 -0
index 6a0568ae62..421775d394 100644
@@ -25,3 +25,5 @@ RDEPENDS_${PN} += " \
 
 # For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools)
 BBCLASSEXTEND = "native"
+
+CLEANBROKEN = "1"
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 python-panda: add cython to DEPENDS

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.

---
 meta-python/recipes-devtools/python/python-pandas.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-pandas.inc +1 -1
index a08f1c2861..9b8e4dcf18 100644
@@ -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} += " \
Signature · 1 line
2.11.0