[Sugar-devel] Query regarding development setup for sugar activiities

Tushar Gupta codingid6 at gmail.com
Mon Jun 8 17:03:01 EDT 2020


On Debian or Ubuntu, ensure deb-src lines are present and enabled in
/etc/apt/sources.list, and then;

should I open sources.list in a text editor and uncomment all deb-src lines
commented with #

On Mon, Jun 8, 2020 at 11:53 PM Srevin Saju <srevinsaju at sugarlabs.org>
wrote:

> Oops, you got the wrong sucrose.
>
> sucrose is not distributed on pypi, i.e, PIP. On ubuntu 18.04, the
> suggested method is to build sugar development environment, I guess you
> missed that part;
>
> The latest version of sugar repository is not available on Bionic Beaver
> (18.04). See https://pkgs.org/search/?q=sucrose; So that means you have
> to build it, to make it work!
>
> But, its simple, but make sure you follow all the instructions carefully;
> in case you miss one step, the rest of them goes awry.
>
>
> https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md#native-sugar
>
> Let me know if you face any issues in between the steps
> On 08/06/2020 21:18, Tushar Gupta wrote:
>
> Just a quick question, I am using ubuntu 18.04
>
> I pip installed sucrose
> Cloned the repo somewhere on ubuntu
> Then navigated to the cloned repo, ran python main.py dev
> Re-login with sugar And changes will be reflected in sugar ?
>
> Thanks !
>
> On Mon, Jun 8, 2020, 11:03 PM Srevin Saju <srevinsaju at sugarlabs.org>
> wrote:
>
>> Hello Tushar,
>>
>> Great to hear you have setup the development environment
>>
>> To port stick-hero-activity, you may follow these steps if you are not
>> using a VM. These steps are pretty simple, (there might be other
>> methods, but if you are beginning development, you may prefer this method)
>>
>> * Clone a local copy of stick-hero-activity: `git clone
>> https://github.com/sugarlabs/stick-hero-activity`
>> <https://github.com/sugarlabs/stick-hero-activity>
>>
>> * Create a `branch` so that you can revert any time, in case you make a
>> mistake, and also reviews would be easier, and your patch could get
>> merged faster. `git branch tushar-fixes`
>>
>> * Checkout the branch : `git checkout tushar-fixes`
>>
>> * Now, there are many different ways to do this step, i.e setting it up
>> for development, but I prefer this: `python setup.py dev`, or `python3
>> setup.py dev`; In case you are porting it to python3, port the setup.py
>> first so that you can test it. This will create 'symlinks' to the
>> '~/Activities' folder, so if you make changes to the cloned activity,
>> then your changes will get reflected (almost) immediately
>>
>> * Log out your system, Log In to sugar: see
>>
>> https://github.com/sugarlabs/sugar-docs/blob/master/src/sugar-logging-in.md
>>
>> * You are likely to see your activity in the spiral view. (do not see it?)
>>
>> * You can check the logs your activity produces using the Log.Activity
>> (https://github.com/sugarlabs/log-activity)  , alternatively, use the
>> Terminal Activity (https://github.com/sugarlabs/terminal-activity),
>> change your directory to `~/Activities/StickHero.Activity` and then run
>> `sugar-activity3`, this will launch your activity. After you close your
>> activity, you can see the logs in the Terminal itself.
>>
>> Hope I did not complicate things. if you have any more questions, you
>> can join #sugar on IRC
>> (https://wiki.sugarlabs.org/go/Internet_Relay_Chat) . we will try to
>> help you out,
>>
>> --
>> V/r
>> Srevin Saju
>>
>> --
> V/r
> Srevin Saju
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200609/245723ae/attachment.htm>


More information about the Sugar-devel mailing list