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

Bug 150877

Summary: dev-python/reportlab-2.0 barcode extension
Product: Gentoo Linux Reporter: Anders Bach Madsen <abachn>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: m.kefeder, neurogeek
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: enhanced ebuild for reportlab 2.0
quick hack fixes setup.py to install barcode package

Description Anders Bach Madsen 2006-10-11 04:44:56 UTC
I was using the reportlab package but I needed a barcode extension. I have added this to the ebuild under the keyword barcode.
Comment 1 Anders Bach Madsen 2006-10-11 04:45:40 UTC
Created attachment 99353 [details]
enhanced ebuild for reportlab 2.0
Comment 2 Michael Kefeder 2007-01-11 10:17:03 UTC
You do realize that the barcode package is under reportlab.graphics.barcode in reportlab 2.0? (unpack the tgz to see what i mean, also mentioned in http://www.reportlab.org/whatsnew_2_0.html) You don't need to install it seperately. 

The reason why the directory /usr/lib/python2.x/site-packages/reportlab/graphics/barcode is never created is that the setup.py is borked in the original release, it is missing the package in its packages list. There maybe even more packages missing, somebody should check this out.

--- reportlab/setup.py  2006-05-23 17:56:46.000000000 +0200
+++ setup.py    2007-01-11 11:02:27.198519121 +0100
@@ -235,6 +235,7 @@
             packages=[ # include anything with an __init__
                     'reportlab',
                     'reportlab.extensions',
+                    'reportlab.graphics.barcode',
                     'reportlab.graphics.charts',
                     'reportlab.graphics.samples',
                     'reportlab.graphics.widgets',
Comment 3 Michael Kefeder 2007-01-11 11:02:02 UTC
Created attachment 106526 [details]
quick hack fixes setup.py to install barcode package

I created a quick hack to fix the problem with the missing barcode package. But as I said, one should check why this was missing from the list.
Comment 4 Jesus Rivero (RETIRED) gentoo-dev 2008-07-12 04:44:35 UTC
Hello, 

    dev-python/reportlab-2.1 already provides barcode extension under reportlab.graphics. 

    In addition, the barcode extension is also in setup.py's extensions variables. 

 packages=[ # include anything with an __init__
                    'reportlab',
                    'reportlab.extensions',
                    'reportlab.graphics.charts',
                    'reportlab.graphics.samples',
                    'reportlab.graphics.widgets',
                    'reportlab.graphics.barcode', <--
              ...
Comment 5 Rob Cakebread (RETIRED) gentoo-dev 2008-07-12 20:22:51 UTC
Thanks guys, 2.1 is in the tree now and it has all this working now in setup.py so I'm dropping 2.0