Commits

ariovistus  committed b161b3b

fix for python 3

  • Participants
  • Parent commits 4f800b6

Comments (0)

Files changed (3)

File examples/hello/makefile

 all: 
 	echo 'import sys; sys.path.append("../../build/lib/");' > tsetup.py
 	cat setup.py >> tsetup.py 
-	python tsetup.py build --compiler=ldc
+	python3 tsetup.py build --compiler=ldc
 	#echo 'import sys; sys.path.append("../../build/lib/");' > tsetup.py
 	#cat setup2.py >> tsetup.py
 	#python tsetup.py build

File examples/misc/ldc_sharedlibs/test3.d

         int j;
         double d;
     }
-    export extern __gshared Foobar foo;
+    __gshared Foobar foo;
 }
 
 void main() {

File infrastructure/pyd/def.d

         modl.m_doc = zcc(docstring);
         modl.m_size = -1;
         modl.m_methods = module_methods[""].ptr;
+        pyd_module_classes[""] = (void delegate()[string]).init;
 
         Py3_ModuleInit!"".func();
     }else {