]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
bos #20133 Wrap numpy-dependent code with preprocessor check ci/20133-1
authorvsr <vsr@opencascade.com>
Thu, 1 Oct 2020 09:30:55 +0000 (12:30 +0300)
committervsr <vsr@opencascade.com>
Thu, 1 Oct 2020 09:30:55 +0000 (12:30 +0300)
src/MEDCoupling_Swig/DataArrayInt.i

index da27feb996b0c750f048b8b1e8e50fcefbd03e93..e0c0070cd30f7aa548c11fb8438da470e122cc6e 100644 (file)
                 return ret.retn();
               }
           }
+#if defined(WITH_NUMPY)
         else if(MEDCouplingHasNumPyBindings() && PyArray_Check(elt0) && nbOfTuples==NULL && nbOfComp==NULL)
           {//ARRAY.New(numpyArray)
             return BuildNewInstance<ARRAY,INT>(elt0,NPYTraits<INT>::NPYObjectType,NPYTraits<INT>::NPYFunc,MEDCoupling::Traits<INT>::NPYStr);
           }
+#endif
         else
           throw INTERP_KERNEL::Exception(msg.c_str());
         throw INTERP_KERNEL::Exception(msg.c_str());//to make g++ happy