Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 375791

Summary: dev-python/svgwrite (New Package)
Product: Gentoo Linux Reporter: Florian Berger <florian.berger>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: enhancement CC: python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Experimental svgwrite ebuild

Description Florian Berger 2011-07-20 19:12:58 UTC
Created attachment 280485 [details]
Experimental svgwrite ebuild

svgwrite is a Python library to create SVG drawings. It is similar to dev-python/pysvg which is already in the tree, but more "pythonic" and better documented. The PyPI site is at http://pypi.python.org/pypi/svgwrite .

I have created a dead simple ebuild which works for me, but surley needs improvement. Though it claims to be compatible to Python 3.x, there is a syntax error when "Compilation and optimization of Python modules for CPython 3.2" which I have reported upstream. Apart from that, it works flawlessly for me on Python 2.6.
Comment 1 Agostino Sarubbo gentoo-dev 2011-07-21 11:25:02 UTC
CC'ing python if is interested
Comment 2 Florian Berger 2011-07-21 12:06:51 UTC
The error emerging the ebuild is

 * Compilation and optimization of Python modules for CPython 3.2 ...
*** Error compiling /usr/lib/python3.2/site-packages/svgwrite/data/pyparsing_py2.py ...
  File "/usr/lib/python3.2/site-packages/svgwrite/data/pyparsing_py2.py", line 2538
    except ParseException, err:
                         ^
SyntaxError: invalid syntax
                                                                         [ !! ]

I have just learned from the author that "pyparsing_py2.py" is not meant to be compiled by Python 3. So the ebuild should somehow exclude it from compiling, but I do not yet know how to achieve this. Any hints would be welcome.
Comment 3 Patrice Clement gentoo-dev 2016-10-14 10:46:10 UTC
Reopen if you still want this ebuild in the tree.