[Sugar-devel] setup.py install and git submodules

Daniel Narvaez dwnarvaez at gmail.com
Sat Nov 23 16:34:39 EST 2013


Another advantage of pypi is that distros knows how to deal with it
already. To be honest I don't think activities should be packaged like
distro packages though in practice people are doing that.

On Saturday, 23 November 2013, Daniel Narvaez wrote:

>  I'm not sure.
>
> I think we shouldn't refuse a patch that does that but before investing
> time in writing one I wonder if it would be better to research a bit the
> direction we should take worth code sharing... I think pypi is not as nice
> as npm, though I wonder if it would be better than using submodules,
> because dependencies seems like a fundemental feature... Of course you
> could do submodules + our own dependencies thing but... It seems like we
> should adopt something the python community already uses here, both because
> it makes external libraries available and because it's not trivial to write.
>
> Just thinking out loud really!
>
> On Saturday, 23 November 2013, Manuel Quiñones wrote:
>
>> Hi,
>>
>> I'm trying to test SimpleActivity inside Browse.  To solve maintaining
>> the files of the library, I'm adding it as a git module:
>>
>> git submodule add git://git.sugarlabs.org/simpleactivity/mainline.git
>> simpleactivity
>>
>> But seems that our setup.py install command doesn't support git
>> submodules.  Do we agree this is a bug that deserves a ticket?
>>
>> ------
>>
>> [osbuild sugar-build]$ run
>>
>> = Building =
>>
>> * Building browse
>>
>> [osbuild sugar-build]$ run
>>
>> = Building =
>>
>> * Building browse
>>
>> Command failed: python /home/broot/sugar-build/browse/setup.py install
>> --prefix /home/broot/sugar-build/build/out/install
>>
>> Install /home/broot/sugar-build/browse/data/index.html to
>>
>> /home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/data/index.html.
>> Install /home/broot/sugar-build/browse/po/da.po to
>>
>> /home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/da.po.
>> Install /home/broot/sugar-build/browse/locale/rw/LC_MESSAGES/
>> org.laptop.WebActivity.mo
>> to /home/broot/sugar-build/build/out/install/share/locale/rw/LC_MESSAGES/
>> org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/ml/LC_MESSAGES/
>> org.laptop.WebActivity.mo
>> to /home/broot/sugar-build/build/out/install/share/locale/ml/LC_MESSAGES/
>> org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/po/cy.po to
>>
>> /home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/cy.po.
>> Install /home/broot/sugar-build/browse/locale/sd/LC_MESSAGES/
>> org.laptop.WebActivity.mo
>> to /home/broot/sugar-build/build/out/install/share/locale/sd/LC_MESSAGES/
>> org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/th/activity.linfo to
>>
>> /home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/locale/th/activity.linfo.
>> Install /home/broot/sugar-build/browse/locale/bs/LC_MESSAGES/
>> org.laptop.WebActivity.mo
>> to /home/broot/sugar-build/build/out/install/share/locale/bs/LC_MESSAGES/
>> org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/po/ro.po to
>>
>> /home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/ro.po.
>> Install /home/broot/sugar-build/browse/po/pbs.po to
>>
>> /home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/pbs.po.
>> Install /home/broot/sugar-build/browse/webtoolbar.py to
>>
>> /home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/webtoolbar.py.
>> Install /home/broot/sugar-build/browse/po/te.po to
>>
>> /home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/te.po.
>> Install /home/broot/sugar-build/browse/locale/es/LC_MESSAGES/
>> org.laptop.WebActivity.mo
>> to /home/broot/sugar-build/build/out/install/share/locale/es/LC_MESSAGES/
>> org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/de/LC_MESSAGES/
>> org.laptop.WebActivity.mo
>> to /home/broot/sugar-build/build/out/install/share/locale/de/LC_MESSAGES/
>> org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/yo/LC_MESSAGES/
>> org.laptop.WebActivity.mo
>> to /home/broot/sugar-build/build/out/install/share/locale/yo/LC_MESSAGES/
>> org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/sv/LC_MESSAGES/
>> org.laptop.WebActivity.mo
>> to /home/broot/sugar-build/build/out/install/share/locale/sv/LC_MESSAGES/
>> org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/po/cs.po to
>> /home/broot/sugar-build/build/out/install --
>> .. manuq ..
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>
>
> --
> Daniel Narvaez
>
>

-- 
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131123/47efe930/attachment.html>


More information about the Sugar-devel mailing list