Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161853 - dev-python/construct-2.00 (python parsing module) - new ebuild
Summary: dev-python/construct-2.00 (python parsing module) - new ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-01-13 02:00 UTC by Thomas R. (TRauMa)
Modified: 2009-02-04 10:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python/construct/construct-2.00.ebuild (construct-2.00.ebuild,1.09 KB, text/plain)
2007-01-13 02:01 UTC, Thomas R. (TRauMa)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas R. (TRauMa) 2007-01-13 02:00:09 UTC
I wrote an new ebuild. "Ha," you might say, "earthshattering! What wonderful package might it be?"

It's construct, a python module for parsing (mainly binary data). Sadly, the current, brand new release 2.00 is only for python 2.5. Backporting to older python versions is done by a co-author, no roadmap yet. In other words I won't hold my breath till it is in portage, but include it here anyway.

QA comments highly appreciated.
Comment 1 Thomas R. (TRauMa) 2007-01-13 02:01:01 UTC
Created attachment 106758 [details]
dev-python/construct/construct-2.00.ebuild
Comment 2 Jernej Kos 2007-01-13 18:24:36 UTC
As far as I see it, there already exists a "backport" to 2.4 - and there seem to be no major changes (quote from the website "Added a "backport" to python 2.4... there was one try-except-finally clause that was incompatible.").
Comment 3 Thomas R. (TRauMa) 2007-01-13 21:48:46 UTC
Indeed! Strange, when I tested the ebuild with python 2.4 I got the try-finally-bug, and also some foo = bar if baz else boo expressions.

I'm unsure how to go about this, add just the backport as ebuild? Add a python24 use flag? And how to factor in the test use flag? Wah, complexity ;-).
Comment 4 Thomas R. (TRauMa) 2007-01-13 22:16:34 UTC
Ha!

 * Byte compiling python modules for python-2.4 .. ...
Compiling /usr/lib/python2.4/site-packages/construct/formats/graphics/bmp.py ...
  File "/usr/lib/python2.4/site-packages/construct/formats/graphics/bmp.py", line 88
    Array(lambda ctx: 2 ** ctx.bpp if ctx.bpp <= 8 else 0,
                                    ^
SyntaxError: invalid syntax

Compiling /usr/lib/python2.4/site-packages/construct/formats/graphics/bmp.py ...
  File "/usr/lib/python2.4/site-packages/construct/formats/graphics/bmp.py", line 88
    Array(lambda ctx: 2 ** ctx.bpp if ctx.bpp <= 8 else 0,
                                    ^
SyntaxError: invalid syntax
                                                                          [ !! ]


I remembered correctly. Contacted upstream.
Comment 5 Patrick Lauer gentoo-dev 2009-02-03 21:06:02 UTC
+  03 Feb 2009; Patrick Lauer <patrick@gentoo.org> +metadata.xml,
+  +pyconstruct-2.0.0.ebuild:
+  Initial import. Ebuild by Thomas R. (TRauMa). Closes #161853.

So now I'd really appreciate a patch to enable the tests.
I think we can safely ignore the py24 backport now.

Thanks!

(and btw, we don't believe in the gpl v.2+ nonsense. 2 it is :) )
Comment 6 Thomas R. (TRauMa) 2009-02-04 10:40:21 UTC
Oh, nice, I totally forgot about this. I think I saw a note on -dev wrt having to call python_needs_rebuild or sth to mark the package for python-updater.