[Sugar-devel] Help in modifying sugar for testing

Saumya Mishra 2017230 at iiitdmj.ac.in
Tue May 26 02:08:10 EDT 2020


Thanks James, This was the problem I was also facing while testing sugar
live build, My changes were not reflecting, Hope that helps.



On Tue, May 26, 2020 at 10:50 AM James Cameron <quozl at laptop.org> wrote:

> Yes, that's a problem I've seen before, and I reproduced it just now.
>
> Sugar Live Build includes /usr/src/sugar which is a clone of the Sugar
> repository, not a tarball.  When autogen, make and make install are
> run, the files are placed in site-packages, not dist-packages.
>
> site-packages is logically correct, but Debian does not look at
> site-packages when it runs Sugar.
>
> During build, we have a special step after make install;
>
> https://github.com/sugarlabs/sugar-live-build/blob/master/src/config/hooks/normal/0900-sugar.hook.chroot#L42
>
> So in addition to make install, you should also do;
>
> rm -rf /usr/lib/python3.7/dist-packages/jarabe/
> mv /usr/lib/python3.7/site-packages/jarabe
> /usr/lib/python3.7/dist-packages/
>
> I've no explanation for "make: nothing to be done for 'main.py", the
> message makes no sense to me.  I don't see it when I test.
>
> On Tue, May 26, 2020 at 06:32:52AM +0200, sugar at radii.dev wrote:
> > Based on [1]https://github.com/sugarlabs/sugar/blob/master/docs/
> > development-environment.md#sugar-live-build I am making changes to:
> > /usr/src/sugar/src/jarabe/main.py
> > and than
> > # make install
> > But nothing changes. I get message in the end
> > "make: nothing to be done for 'main.py"
> > Any help?
> >
> > Regards,
> > Manish
> >
> > References:
> >
> > [1]
> https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md#sugar-live-build
>
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> James Cameron
> http://quozl.netrek.org/
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200526/851b57e9/attachment.htm>


More information about the Sugar-devel mailing list