Re: [Pythonmac-SIG] Framework build of 2.4.2

2005-10-27 Thread Bob Ippolito
On Oct 27, 2005, at 2:29 PM, Samuel M. Smith wrote: > Will there be a framework installer for python 2.4.2? Not particularly soon unless someone else does it. The problem is that my G4 with 10.3 still on it is sitting in storage and I don't plan on getting it out any time soon. I could try a

[Pythonmac-SIG] Framework build of 2.4.2

2005-10-27 Thread Samuel M. Smith
Will there be a framework installer for python 2.4.2? ** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ***

Re: [Pythonmac-SIG] TKinter problem

2005-10-27 Thread Tom Pollard
On Oct 26, 2005, at 3:18 AM, Mark Asbach wrote: >> Tkinter command I get a "no display name and no $DISPLAY environment >> variable" error, e.g. > > obviously, you are using a version of Tkinter that relies on the > X11 Window environment. Just start your python code from apple's / > Applicatio

Re: [Pythonmac-SIG] Writting C extension in Mac os X tiger

2005-10-27 Thread Bob Ippolito
On Oct 27, 2005, at 12:37 PM, Jaonary Rabarisoa wrote: > Hi all, > > > I'm trying to write a C++ function that I can use with python. The > sample code below works well under windows and linux but not under > mac os x tiger : > > > #include "Python.h" > > static PyObject * mHarrisDetector(PyObjec

Re: [Pythonmac-SIG] Writting C extension in Mac os X tiger

2005-10-27 Thread Zhi Peng
I would like to run this code from Mac 10.4 environment first as individual program by create main and put some Py_Initialize();   and Py_Finalize()   inside main and compile it. If it can run, it should be able to compiled as .so library.     Regards   Zhi Jaonary Rabarisoa <[EMAIL PROTECTED]>

[Pythonmac-SIG] Writting C extension in Mac os X tiger

2005-10-27 Thread Jaonary Rabarisoa
Hi all, I'm trying to write a C++ function that I can use with python. The sample code below works well under windows and linux but not under mac os x tiger : #include "Python.h" static PyObject * mHarrisDetector(PyObject *self, PyObject *args) { //Parse the args const int N = 5

Re: [Pythonmac-SIG] embedded C in MacPython

2005-10-27 Thread Ronald Oussoren
On 27-okt-2005, at 18:48, Zhi Peng wrote: > Hi! Chris > > Thanks a lot for your email. It is exactly what I would like to have. > > I use MacPython 2.3. But unfortunately, on my Mac 10.4 Tiger, they > erased all *.py file and leave all *.pyc or *.pyd file. I even can > not find include direct

Re: [Pythonmac-SIG] embedded C in MacPython

2005-10-27 Thread Bob Ippolito
On Oct 27, 2005, at 10:14 AM, Chris Barker wrote: > One other note. The system compiler for OS-X 10.4 is gcc 4.*, which > is a > bit more picky about standards compliance than gcc3.*, so some code > won't compile with it. I think Xcode tools comes with both, > however, and > there is a script

Re: [Pythonmac-SIG] embedded C in MacPython

2005-10-27 Thread Chris Barker
Zhi Peng wrote: > Hi! Chris Thanks a lot for your email. It is exactly what I would > like to have. I use MacPython 2.3. But unfortunately, on my Mac 10.4 > Tiger, Are you using the 2.3 that Apple provided? If so, I think the headers you need are there, but I don't have Tiger. If they are not the

Re: [Pythonmac-SIG] embedded C in MacPython

2005-10-27 Thread Zhi Peng
Hi! Chris   Thanks a lot for your email. It is exactly what I would like to have.   I use MacPython 2.3. But unfortunately, on my Mac 10.4 Tiger, they erased all *.py file and leave all *.pyc or *.pyd file. I even can not find include directory or headers directory on this new Mac. If MacPython i

Re: [Pythonmac-SIG] embedded C in MacPython

2005-10-27 Thread Chris Barker
Zhi Peng wrote: > I has some small program in C which is compiled as .so library in > Linux and I can directly import name_of_lib.so as a module from > python when I run it on Linux. It looks same if I just see them from > Terminal window on Mac. Did anyone compile any C code as library > called by