[Python-Dev] Static linking with libpython.a

2010-06-14 Thread F van der Meeren
Hello, I am trying to figure out, what files to copy with my app so I am able to initialize the python runtime. Where can I find information about this? I am currently targeting Mac OS X 10.5 and above. Thank you, Filip ___ Python-Dev mailing list Py

[Python-Dev] debug and release python

2010-06-14 Thread Kristján Valur Jónsson
Hello there. I'm sure this has come up before, but here it is again: Python exports a different api in debug mode, depending on whether PYMALLOC_DEBUG and WITH_PYMALLOC are exported. This means that _d.pyd files that are used must have been compiled with a version of python using the same sett

Re: [Python-Dev] debug and release python

2010-06-14 Thread Martin v. Löwis
Some external software comes with proprietary .pyd bindings. Can you please explain what a "proprietary .pyd binding" is? Do you mean they come with extension modules? If so, there is no chance of using them in debug mode, anyway, right? So what specifically is the problem? Regards, Martin ___

[Python-Dev] Sharing functions between C extension modules in stdlib

2010-06-14 Thread Alexander Belopolsky
I have learned a long time ago that it is not enough to simply declare a function in some header file if you want to define it in one module and use in another. You have to use what now is known as PyCapsule - an array of pointers to C functions wrapped in a Python object. However, while navigatin

Re: [Python-Dev] Sharing functions between C extension modules in stdlib

2010-06-14 Thread Alexander Belopolsky
On Mon, Jun 14, 2010 at 6:45 PM, Alexander Belopolsky wrote: .. > I did not expect this to work, but apparently the build machinery > somehow knows how to place _PyTime_DoubleToTimet code in both time.so > and datetime.so: .. > I have two questions: 1) how does this happen; and 2) is this intentio

Re: [Python-Dev] Sharing functions between C extension modules in stdlib

2010-06-14 Thread Martin v. Löwis
$ nm build/lib.macosx-10.4-x86_64-3.2-pydebug/datetime.so | grep _PyTime_DoubleToTimet f4e2 T __PyTime_DoubleToTimet $ nm build/lib.macosx-10.4-x86_64-3.2-pydebug/time.so | grep _PyTime_DoubleToTimet 0996 T __PyTime_DoubleToTimet I have two questions: 1) how does this happ

Re: [Python-Dev] Static linking with libpython.a

2010-06-14 Thread Alexander Belopolsky
On Mon, Jun 14, 2010 at 6:29 AM, F van der Meeren wrote: .. > I am trying to figure out, what files to copy with my app so I am able to > initialize the python runtime. > Where can I find information about this? On comp.lang.python forum. This forum is for developing python itself, not applicat