[sugar] specifying what services Activities may use

Jerry Williams jwilliam at xmission.com
Tue Jul 29 00:31:20 EDT 2008


> -----Original Message-----
> From: Benjamin M. Schwartz [mailto:bmschwar at fas.harvard.edu]
> Sent: Monday, July 28, 2008 7:40 PM
> To: Jerry Williams
> Cc: 'Mikus Grinbergs'; devel at lists.laptop.org; sugar at lists.laptop.org
> Subject: Re: [sugar] specifying what services Activities may use
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jerry Williams wrote:
> | Seems like this problem for linux was solved with RPM.
> | With rpm if something is missing for something you want to install, it
> | complains and won't let you install it.
> 
> That's not really the problem we're discussing.  We're talking about the
> case in which you try to install an old bundle onto a new build, or vice
> versa.  RPM solves this problem by just not letting you do that.  You
> can't install a rh9 RPM on FC8.

This isn't true, you can run fc9 rpms on fc8 and you can run fc8 rpms on
fc9.
I have done both, just as long as the dependencies are met.

It seems to me that for starters the sugar rpm is broken.
It doesn't require python-json which is imported by activity.py.
And the terminal activity won't run without it.

So if sugar isn't checking for what it needs, how is any activity going to?

> 
> I don't think many people around here would be happy to require all new
> .xo bundles for every release.  I don't have a solution to suggest, but I
> don't think classic dependency management is going to do the trick.
> 
> - --Ben
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkiOdOEACgkQUJT6e6HFtqTGkwCfc1+dfhpyyBOeunbv0IWUeaaa
> GccAnRZGstdun3UbDMJ9INwCtfXYUt8T
> =TrAc
> -----END PGP SIGNATURE-----

>From what I have seen there is very little if any dependency checking going
on.  Not to pick on anyone, but Pacman needs pygame, but doen't check for
it.

Maybe using something like pychecker as part of .xo install process could do
some checking.

$ pychecker *.py
Processing activity...
  ImportError: No module named pygame
Processing game...
  ImportError: No module named pygame

So should the activity be checking for what it needs or should the .xo
install be doing that or both?

Right now things just fail and you have to know how to go look at the logs.
Should those errors just be sent to the screen as well?

Jerry Williams





More information about the Devel mailing list