boost: backport python3 import fix (#20301)
This commit is contained in:
parent
2cda9ea7fd
commit
0a241b2414
10
var/spack/repos/builtin/packages/boost/boost_218.patch
Normal file
10
var/spack/repos/builtin/packages/boost/boost_218.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- a/libs/python/src/numpy/numpy.cpp
|
||||||
|
+++ b/libs/python/src/numpy/numpy.cpp
|
||||||
|
@@ -19,6 +19,7 @@ static void wrap_import_array()
|
||||||
|
static void * wrap_import_array()
|
||||||
|
{
|
||||||
|
import_array();
|
||||||
|
+ return NULL;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
@ -256,6 +256,10 @@ def libs(self):
|
|||||||
# See https://github.com/boostorg/build/pull/154
|
# See https://github.com/boostorg/build/pull/154
|
||||||
patch('boost_154.patch', when='@:1.63.99')
|
patch('boost_154.patch', when='@:1.63.99')
|
||||||
|
|
||||||
|
# Backport Python3 import problem
|
||||||
|
# See https://github.com/boostorg/python/pull/218
|
||||||
|
patch('boost_218.patch', when='@:1.67.99')
|
||||||
|
|
||||||
def patch(self):
|
def patch(self):
|
||||||
# Disable SSSE3 and AVX2 when using the NVIDIA compiler
|
# Disable SSSE3 and AVX2 when using the NVIDIA compiler
|
||||||
if self.spec.satisfies('%nvhpc'):
|
if self.spec.satisfies('%nvhpc'):
|
||||||
|
Loading…
Reference in New Issue
Block a user