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

Tushar Gupta codingid6 at gmail.com
Mon Jun 8 14:18:00 EDT 2020


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200608/be987a84/attachment.htm>


More information about the Sugar-devel mailing list