Ziyuan Lin added the comment:
I can't build the cpython with Visual Studio 2012 because of the following
errors:
"D:\Repository\cpython\PCbuild\pcbuild.sln" (default target) (1) ->
"D:\Repository\cpython\PCbuild\_msi.vcxproj" (default target) (13) ->
(Link
Ziyuan Lin added the comment:
Yes, although I left out the space after the third PyAPI_FUNC().
--
___
Python tracker
<http://bugs.python.org/issue19932>
___
___
Ziyuan Lin added the comment:
To see the errors, one can install PyCUDA and Theano, and run code at
http://deeplearning.net/software/theano/tutorial/using_gpu.html#id1 :
import numpy, theano
import theano.misc.pycuda_init
from pycuda.compiler import SourceModule
import theano.sandbox.cuda as
New submission from Ziyuan Lin:
In Include\import.h, line 89-97:
PyAPI_FUNC(PyObject *)_PyImport_FindBuiltin(
const char *name/* UTF-8 encoded string */
);
PyAPI_FUNC(PyObject *)_PyImport_FindExtensionObject(PyObject *, PyObject *);
PyAPI_FUNC(int)_PyImport_FixupBuiltin