falcon: Set Py_None to return value (#14532)
This commit is contained in:
parent
c763b68b7c
commit
7319516749
10
var/spack/repos/builtin/packages/falcon/Py_None.patch
Normal file
10
var/spack/repos/builtin/packages/falcon/Py_None.patch
Normal 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;
|
||||
}
|
@ -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:')
|
||||
|
Loading…
Reference in New Issue
Block a user