[Sugar-devel] Help Needed adding a module to my Activity

Tony Anderson tony_anderson at usa.net
Mon Aug 8 02:42:05 EDT 2016


Hi, Sam

My understanding is that activities need to satisfy their own 
dependencies. This helps minimize the space taken by Sugar providing 
software for activities
not installed. Currently, it is difficult to install Sugar on an XO-1 
with 1GB storage and not possible for an XO-1.5 with 2GB storage.

ASLO needs to be supported. We certainly do not need to make activity 
bundles dependent on a distribution - setup.py is fine.

Tony

On 08/08/2016 08:30 AM, Sam Parkinson wrote:
> Statically including libraries in the XO files is yuck, but I don't 
> think we have another way to do it.  I believe that Physics activity 
> also statically includes libraries - maybe see how it works there?
>
> Side note:  It would be so much better if Sugar activities could just 
> declare dependencies.  Just say something like "bindeps=fontmake".  If 
> we just made them all into RPMs/DEBs and had a AppStream based store 
> interface ... that would be nice.  ASLOv2v2 is just something 
> automatically building rpms and debs?
>
> Thanks,
> Sam
>
> On Mon, Aug 8, 2016 at 5:02 AM, Yash Agarwal <agrwal.ysh94 at gmail.com> 
> wrote:
>> Hello,
>> The Issue is Documented here 
>> <https://github.com/sugarlabs/edit-fonts-activity/issues/34>
>> but I'll paste the relevant part here
>> I'm trying to use fontmake 
>> <https://github.com/googlei18n/fontmake> in my sugar activity, It 
>> works fine on my system but in sugar it requires a dependency which I 
>> don't know how to add
>> this is the error I'm getting
>> ```
>> bash-4.2$ python -m fontmake -u ../test_fonts/sample.ufo
>> Traceback (most recent call last):
>>   File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
>>     "__main__", fname, loader, pkg_name)
>>   File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
>>     exec code in run_globals
>>   File 
>> "/home/broot/sugar-build/activities/edit-fonts-activity/third_party/fontmake/__main__.py", 
>> line 17, in <module>
>>     from fontmake.font_project import FontProject
>>   File "fontmake/font_project.py", line 25, in <module>
>>     from booleanOperations import BooleanOperationManager
>>   File "booleanOperations/__init__.py", line 2, in <module>
>>     from .booleanOperationManager import BooleanOperationManager
>>   File "booleanOperations/booleanOperationManager.py", line 3, in 
>> <module>
>>     from . import pyClipper
>> ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not 
>> found (required by booleanOperations/pyClipper.so)
>> ```
>>
>
>
> _______________________________________________
> 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/20160808/7f859829/attachment.html>


More information about the Sugar-devel mailing list