Problem creating .xo bundle
Art Hunkins
abhunkin at uncg.edu
Tue Jun 23 15:54:37 EDT 2009
Thanks, Bert; that clears up a *lot*.
I will indeed migrate my queries to the Sugar development list.
It would be helpful for new developers like me if this migration of activity
development to Sugar Labs were thouroughly clear in the laptop.org wiki.
Developers could be pointed to Sugar Labs straightaway.
Thanks again for your straightforward help.
Art Hunkins
----- Original Message -----
From: "Bert Freudenberg" <bert at freudenbergs.de>
To: "Art Hunkins" <abhunkin at uncg.edu>
Cc: <devel at lists.laptop.org>
Sent: Tuesday, June 23, 2009 2:37 PM
Subject: Re: Problem creating .xo bundle
> On 23.06.2009, at 20:19, Art Hunkins wrote:
>
>> Thanks for this suggestion, Bert.
>>
>> Actually, I did the equivalent in Windows; I could install the resultant
>> bundle from a USB drive using the sugar-install-bundle command (as
>> described in the User Manual, p.117).
>>
>> Three little questions, given your scenario:
>>
>> 1) Is setup.py then needed in the bundle at all?
>
> No. It's convenient for packagers if it's there but an activity works
> fine without.
>
>> 2) Is MANIFEST needed in the bundle at all?
>
> I don't think so.
>
>> 3) If MANIFEST is required, should its list of files *include* MANIFEST?
>> (I gather not.
>
> It must not be included.
>
> Note that Sugar development moved from OLPC to Sugar Labs. These kind of
> questions would be better to ask on the Sugar developers list:
>
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
> - Bert -
>
>>> Date: Tue, 23 Jun 2009 12:21:54 +0200
>>> From: Bert Freudenberg <bert at freudenbergs.de>
>>> Subject: Re: Problem creating .xo bundle
>>> To: Devel's in the Details <devel at lists.laptop.org>
>>> Message-ID: <C2C7B05D-7F66-4894-A225-1E4023EA8E4D at freudenbergs.de>
>>> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>>>
>>>
>>> On 23.06.2009, at 04:40, Art Hunkins wrote:
>>>
>>>> I've got an XO Activity ready to go, and working perfectly in my (XO)
>>>> Activities folder. (It's called OurMusic.activity.)
>>>>
>>>> I just can't seem to make an .xo bundle of it.
>>>>
>>>> From my activity's folder (OurMusic.activity) I run:
>>>> ./setup.py dist_xo
>>>> and get:
>>>> : No such file or directory
>>>>
>>>> If I run:
>>>> setup.py dist_xo
>>>> or just
>>>> setup.py
>>>> I get:
>>>> bash: setup.py: command not found
>>>> (and setup.py is right there in the folder, with correct permissions.)
>>>>
>>>> Can someone give me guidance, please? (Happy to send along my
>>>> setup.py,
>>>> MANIFEST and activity.info files if relevent.)
>>>
>>> setup.py is not needed:
>>>
>>> cd ~/Activities
>>> zip -r OurMusic-1.zip OurMusic.activity
>>> mv OurMusic-1.zip OurMusic-1.xo
>>>
>>> Setup.py simply ensures that you use the right version number for the
>>> bundle file name, it includes only what's listed in MANIFEST, it uses
>>> the right directory etc. But if you know all these constraints you can
>>> simply use zip to make a bundle. No magic involved :)
>>>
>>> - Bert -
>>
>
>
>
More information about the Devel
mailing list