[Pythonmac-SIG] Building external module under MacPython 2.0

W.T. Bridgman wtbridgman@Radix.Net
Fri, 3 Nov 2000 23:17:49 -0500


I'm trying to recompile a Python extension that ran under 1.5.1 to 
run under 2.0.  I'm using CodeWarrior 5.  I have the source code for 
the module but am not that familiar with the details of it's 
operation.

After fixing a few other problems (Py_Malloc seems to have become 
more type-sensitive - the API docs suggest it may be gone, replaced 
by PyMem_Malloc?), I'm down to this error:

Error   : the file 'sys/time.h' cannot be opened
pyport.h line 95   #include <sys/time.h>

Could this be something that's changed between CW 5 & 6?  I'm trying 
to track down just where this option gets set.  The dependencies in 
config.h seem a bit different between Python 1.5.1 & 2.0.

BTW, the old module still builds when linked to Python 1.5.1 so this 
seems to be strictly due to a change in 2.0.

Ideas?

Thanks,
Tom

 
-- 
Tom Bridgman, Ph.D. 
wtbridgman@radix.net                         Physics & Astronomy