falcon: Set Py_None to return value (#14532)

This commit is contained in:
noguchi-k 2020-01-17 03:14:52 +09:00 committed by Adam J. Stewart
parent c763b68b7c
commit 7319516749
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- spack-src/src/c/ext_falcon.c.org 2020-01-15 17:40:41.279400137 +0900
+++ spack-src/src/c/ext_falcon.c 2020-01-15 17:44:47.785718088 +0900
@@ -9,5 +9,6 @@
m = Py_InitModule("ext_falcon", SpamMethods);
if (m == NULL)
- return;
+ Py_INCREF(Py_None);
+ return Py_None;
}

View File

@ -28,3 +28,7 @@ class Falcon(PythonPackage):
depends_on('pacbio-daligner', type='run')
depends_on('pacbio-dextractor', type='run')
depends_on('pacbio-damasker', type='run')
# Python version 3 and later should return
# a value of PyObject type. [-Wreturn-type]
patch('Py_None.patch', when='^python@3:')