[Python-Dev] building _ctypes in trunk fails first time around

Thomas Heller theller at ctypes.org
Fri Jan 18 08:22:15 CET 2008


Guido van Rossum schrieb:
> If I run "make clean" and then "make", builting _ctypes fails with this message:
> 
> *** WARNING: renaming "_ctypes" since importing it failed: No module
> named _weakref
> 
> Typing "make" a second time fixes this -- it seems a simple matter of
> _ctypes being built before _weakref.
> 
What a pity.  Can the order be changed in which the extensions are built,
or should the importing be tried after all the extensions are ready?
Or should _weakref be made a builtin module?

Thomas



More information about the Python-Dev mailing list