Re: [Sugar-devel] Help in modifying sugar for testing

2020-05-26 Thread Saumya Mishra
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  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, su...@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@lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> James Cameron
> http://quozl.netrek.org/
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Help in modifying sugar for testing

2020-05-25 Thread James Cameron
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, su...@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@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel