]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
[PY3] Swig additional fixes
authorNicolas Geimer <nicolas.geimer@edf.fr>
Wed, 15 Mar 2017 14:39:59 +0000 (15:39 +0100)
committerNicolas Geimer <nicolas.geimer@edf.fr>
Wed, 15 Mar 2017 14:39:59 +0000 (15:39 +0100)
src/GEOM_SWIG/geomBuilder.py
src/GEOM_SWIG_WITHIHM/CMakeLists.txt
src/XAO_Swig/CMakeLists.txt

index e5312d23cdd1d5c17b6b32b9b11da42d70b60641..b367b58739c5f0307bcc76127080dd9afb730d30 100644 (file)
@@ -554,7 +554,7 @@ engine = None
 doLcc = False
 created = False
 
-class geomBuilder(object, GEOM._objref_GEOM_Gen):
+class geomBuilder(GEOM._objref_GEOM_Gen):
 
         ## Enumeration ShapeType as a dictionary. \n
         ## Topological types of shapes (like Open Cascade types). See GEOM::shape_type for details.
@@ -605,7 +605,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
         #  @ingroup l1_geomBuilder_auxiliary
         kind = GEOM.GEOM_IKindOfShape
 
-        def __new__(cls):
+        def __new__(cls, *args):
             global engine
             global geom
             global doLcc
@@ -644,12 +644,12 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
             #print "return geom 2 ", geom
             return geom
 
-        def __init__(self):
+        def __init__(self, *args):
             global created
             #print "-------- geomBuilder __init__ --- ", created, self
             if not created:
               created = True
-              GEOM._objref_GEOM_Gen.__init__(self)
+              GEOM._objref_GEOM_Gen.__init__(self, *args)
               self.myMaxNbSubShapesAllowed = 0 # auto-publishing is disabled by default
               self.myBuilder = None
               self.myStudyId = 0
index aac28d6d32516785f9a18476852bc381413ab48e..e513c0bca99e6b180b37fa41ccdbc0c2a47009ed 100755 (executable)
@@ -42,7 +42,7 @@ INCLUDE_DIRECTORIES(
 
 # swig flags
 SET_SOURCE_FILES_PROPERTIES(libGEOM_Swig.i PROPERTIES CPLUSPLUS ON)
-SET_SOURCE_FILES_PROPERTIES(libGEOM_Swig.i PROPERTIES SWIG_DEFINITIONS "-shadow")
+SET_SOURCE_FILES_PROPERTIES(libGEOM_Swig.i PROPERTIES SWIG_FLAGS "-py3")
 SET_SOURCE_FILES_PROPERTIES(libGEOM_SwigPYTHON_wrap.cxx PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
 
 # additional preprocessor / compiler flags
index fa47112e092d9104644a5eb627e136445aa27f57..92b8da83d34461ff82c79d980b6b1b37a9b22974 100644 (file)
@@ -52,7 +52,7 @@ SET(_swig_SCRIPTS
 
 # swig flags
 SET_SOURCE_FILES_PROPERTIES(xao.i PROPERTIES CPLUSPLUS ON)
-SET_SOURCE_FILES_PROPERTIES(xao.i PROPERTIES SWIG_DEFINITIONS "-shadow")
+SET_SOURCE_FILES_PROPERTIES(xao.i PROPERTIES SWIG_FLAGS "-py3")
 #SET_SOURCE_FILES_PROPERTIES(xao_wrap.cxx PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
 
 # --- rules ---