Re: Using python + pygtk in Desktop modules (was Re: Revisitingthe Gnome Bindings)

Ter, 2004-09-28 às 12:21 +0200, Murray Cumming escreveu:
> > Ter, 2004-09-28 às 09:27 +0200, Murray Cumming escreveu:
> >> > You can expect minor API changes between major
> >> > versions, of course.  That's why the modules dir changes between major
> >> > releases.  That's also why to some people it looks like python is
> >> > breaking the API, while it just had minor API changes but is forcing
> >> you
> >> > to recompile every module for the new version.
> >>
> >> That sounds like breaking both the API (which == the ABI for Python, I
> >> think) to me.
> >>
> >> This is a serious objection, so let's make clear what actually happens:
> >>
> >> If I develop and install my app with python 2.2, and then install python
> >> 2.3, might my app stop working?
> >
> >   Not if you recompile all 3rd party python modules the application
> > depends on at the same time.  Python comes with "batteries included",
> > thus applications seldom need 3rd party modules.  That leaves only
> > pygtk / gnome-python to recompile.
> So I take that as "Yes, the applications will break".


  It's like upgrading your kernel without recompiling your 3rd party
WLAN driver module.  Your WLAN card will stop working until you
recompile the driver with the new kernel.  People hardly notice this
because the linux kernel also comes with "batteries included", so almost
all drivers already come with the kernel.

> >   There is a trick applications can do to avoid even this issue.  You
> > can put #!/usr/bin/python2.2 as first line in the script.  This way,
> > even if you install python 2.3, you'll be fine as long as you don't
> > uninstall python 2.2.
> Can a pygtk-for-python2.2 coexist with a pygtk-for-python2.3 on the same
> computer. For instance, can a python 2.2 pygtk application run at the same
> time as a python 2.3 pygtk application, if both applications use the #!
> thing to specify what version of python they need.



Gustavo J. A. M. Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>
The universe is always one step beyond logic.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]