%template(ResTraitsResolvable) ResTraits<Resolvable>;
-%pythoncode
-{
- def KindOfPackage():
- return KindOfResolvable( "package" )
- def KindOfSrcPackage():
- return KindOfResolvable( "srcpackage" )
- def KindOfPatch():
- return KindOfResolvable( "patch" )
- def KindOfPattern():
- return KindOfResolvable( "pattern" )
- def KindOfProduct():
- return KindOfResolvable( "product" )
- def KindOfAtom():
- return KindOfResolvable( "atom" )
- def KindOfScript():
- return KindOfResolvable( "script" )
- def KindOfMessage():
- return KindOfResolvable( "message" )
- def KindOfLanguage():
- return KindOfResolvable( "language" )
-}
+#ifdef SWIGPYTHON
+%pythoncode %{
+def KindOfPackage():
+ return KindOfResolvable( "package" )
+def KindOfSrcPackage():
+ return KindOfResolvable( "srcpackage" )
+def KindOfPatch():
+ return KindOfResolvable( "patch" )
+def KindOfPattern():
+ return KindOfResolvable( "pattern" )
+def KindOfProduct():
+ return KindOfResolvable( "product" )
+def KindOfAtom():
+ return KindOfResolvable( "atom" )
+def KindOfScript():
+ return KindOfResolvable( "script" )
+def KindOfMessage():
+ return KindOfResolvable( "message" )
+def KindOfLanguage():
+ return KindOfResolvable( "language" )
+%}
+#endif
%{
/* Includes the header in the wrapper code */
#include "zypp/base/PtrTypes.h"
-#include <zypp/Edition.h>
-#include <zypp/ResTraits.h>
-#include <zypp/ResStore.h>
-#include <zypp/ZYppFactory.h>
-#include <zypp/ZYpp.h>
-#include <zypp/Pathname.h>
+#include "zypp/Edition.h"
+#include "zypp/ResTraits.h"
+#include "zypp/ResStore.h"
+#include "zypp/ZYppFactory.h"
+#include "zypp/ZYpp.h"
+#include "zypp/Pathname.h"
#include "zypp/base/ReferenceCounted.h"
#include "zypp/ResObject.h"
#include "zypp/ResPoolManager.h"