[Sugar-devel] Help in modifying sugar for testing

James Cameron quozl at laptop.org
Tue May 26 01:19:51 EDT 2020


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/


More information about the Sugar-devel mailing list