Extending python.

Grzegorz Dostatni grzegorz at ee.ualberta.ca
Fri Aug 6 16:18:11 EDT 2004


For license reasons I cannot link to the library dynamically. It has to be
compiled into the python executable.

I do have the source available for the libraries, but the logistics would
be a lot easier if I could simply use the object files.

Greg


My programs use cvs, my mine uses pine.
	- Me


On Fri, 6 Aug 2004, Larry Bates wrote:

> Is the C that you wish to call located in a .DLL?
> If so, I can possibly help.
>
> Larry Bates
> Syscon, Inc.
>
> "Grzegorz Dostatni" <grzegorz at ee.ualberta.ca> wrote in message
> news:Pine.LNX.4.44.0408061307140.8941-100000 at e5-05.ee.ualberta.ca...
> >
> > Followup.
> >
> > Thanks, I'll re-read this again.
> >
> > Small change. I've managed to extend python with a small module (just
> > using the .o file) under Linux. It appears that my problems are a bit more
> > windows centric. Anyone willing and able to help me with that?
> >
> > Greg
> >
> > "In theory, there is no difference between theory and practice.
> >  But, in practice, there is."
> > - Jan L.A. van de Snepscheut
> >
> >
> > On Fri, 6 Aug 2004, Batista, Facundo wrote:
> >
> > > Maybe this will help you:
> > >
> > > http://www.python.org/doc/faq/extending.html
> > >
> > > . Facundo
> > >
> > > #- -----Mensaje original-----
> > > #- De: Grzegorz Dostatni [mailto:grzegorz at ee.ualberta.ca]
> > > #- Enviado el: Viernes, 06 de Agosto de 2004 13:35
> > > #- Para: python-list at python.org
> > > #- Asunto: Extending python.
> > > #-
> > > #-
> > > #-
> > > #- Cheers.
> > > #-
> > > #- More questions.
> > > #- Let's say I'm trying to extend python with a c module. That
> > > #- module cannot
> > > #- be dynamically loaded (for reasons outside my control). I
> > > #- have to create a
> > > #- custom python executable (or more likely custom python library).
> > > #- How would I do that? Is there documentation on that
> > > #- somewhere? Most of
> > > #- what I've seen was for dynamic loading.
> > > #-
> > > #- 2nd Step:
> > > #- Let's say I'm doing it under windows, using Visual Studio. Is there
> > > #- anything I have to be aware of?
> > > #-
> > > #- 3rd Step:
> > > #- Let's say I don't have the source available. I do have the
> > > #- object files,
> > > #- the resulting libraries and the header files though.
> > > #-
> > > #- Greg
> > > #-
> > > #- "The optimist proclaims that we live in the best of all
> > > #- possible worlds,
> > > #-  and the pessimist fears this is true."
> > > #- - James Branch Cabell
> > > #-
> > > #-
> > > #- --
> > > #- http://mail.python.org/mailman/listinfo/python-list
> > > #-
> > >
> >
>
>
>




More information about the Python-list mailing list