Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150877 - dev-python/reportlab-2.0 barcode extension
Summary: dev-python/reportlab-2.0 barcode extension
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 04:44 UTC by Anders Bach Madsen
Modified: 2008-07-12 20:22 UTC (History)
2 users (show)

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


Attachments
enhanced ebuild for reportlab 2.0 (reportlab-2.0-r1.tar.gz,2.02 KB, application/x-gzip)
2006-10-11 04:45 UTC, Anders Bach Madsen
Details
quick hack fixes setup.py to install barcode package (reportlab-2.0-r1_quickhack.tgz,3.31 KB, application/octet-stream)
2007-01-11 11:02 UTC, Michael Kefeder
Details

Note You need to log in before you can comment on or make changes to this bug.
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