[reportlab-users] reportlab setup patch

Dirk Datzert reportlab-users@reportlab.com
Tue, 03 Dec 2002 20:23:06 +0100


Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------5FD8FAE3D97C0043ADBB3266
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi all,

I've downloaded the latest CVS and tried to build a RPM from source.
Since I have had problems I sent a patch and a recipe how-to build
a reportlab-RPM from source:

1. checkout latested source code from CVS
2. cd reportlab; patch -p1 <reportlab-setup.py'
3. python setup.py sdist
4. comment out the packages_dir in setup.py
5. python setup.py bdist_rpm

Regards,
Dirk
--------------5FD8FAE3D97C0043ADBB3266
Content-Type: text/plain; charset=us-ascii;
 name="reportlab-setup.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="reportlab-setup.patch"

diff -uNr reportlab/MANIFEST.in reportlab.rhg/MANIFEST.in
--- reportlab/MANIFEST.in	Thu Jan  1 01:00:00 1970
+++ reportlab.rhg/MANIFEST.in	Tue Dec  3 20:06:29 2002
@@ -0,0 +1,3 @@
+recursive-include fonts *
+recursive-include docs *
+recursive-include lib *.c *.h *.in
diff -uNr reportlab/setup.py reportlab.rhg/setup.py
--- reportlab/setup.py	Tue Dec  3 19:31:34 2002
+++ reportlab.rhg/setup.py	Tue Dec  3 20:13:59 2002
@@ -10,22 +10,23 @@
     LIBS = []
     setup(
             name="Reportlab",
-            version="1.15.3",
+            version="1.16.1",
             description="Reportlab PDF generation tools",
             author="The boys from SW19",
             author_email="info@reportlab.com",
             url="http://www.reportlab.com/",
 
-            package_dir = {'': '..'},
+            # first do 'python setup.py sdist'
+            # second remove package_dir
+            # third do 'python setup.py bdist_rpm'
+            package_dir = {'' : '..'},
 
             packages=[ # include anything with an __init__
                     'reportlab',
                     'reportlab.docs',
                     'reportlab.docs.graphguide',
-                    'reportlab.docs.images',
                     'reportlab.docs.reference',
                     'reportlab.docs.userguide',
-                    'reportlab.fonts',
                     'reportlab.graphics',
                     'reportlab.graphics.charts',
                     'reportlab.graphics.widgets',
@@ -34,7 +35,7 @@
                     'reportlab.pdfgen',
                     'reportlab.platypus',
                       ],
-              data_files = [('docs/images', ['docs/images/Edit_Prefs.gif',
+              data_files = [('/usr/share/doc/packages/reportlab/docs/images', ['docs/images/Edit_Prefs.gif',
                                                  'docs/images/Python_21.gif',
                                                  'docs/images/Python_21_HINT.gif',
                                                  'docs/images/fileExchange.gif',
@@ -43,7 +44,7 @@
                                                  'docs/images/lj8100.jpg',
                                                  'docs/images/replogo.a85',
                                                  'docs/images/replogo.gif']),
-                    ('fonts', ['fonts/LeERC___.AFM',
+                    ('/usr/lib/python2.1/site-packages/reportlab/fonts', ['fonts/LeERC___.AFM',
                                      'fonts/LeERC___.PFB',
                                      'fonts/luxiserif.ttf',
                                      'fonts/rina.ttf']

--------------5FD8FAE3D97C0043ADBB3266--