[reportlab-users] package_path in setup.py

Dirk Datzert reportlab-users@reportlab.com
Thu, 23 Oct 2003 22:13:13 +0200


Hi all,

I detected on Linux with Python 2.1.3 a problem with 'setup.py
bdist_rpm':

In the RPM the main files are in
/usr/lib/python2.1/site-packages/reportlab/* .
But some data files are in /usr/lib/python2.1/reportlab/* .
distutils is placed on /usr/lib/python2.1/ on my Python-RPM. Maybe this
is wrong ?
Due to this the documentation guides can't be created. The images and
fonts are on wrong places.

The following patch should fix this. But I dont't know if this affects
other OS ?

diff -uNr reportlab.orig/setup.py reportlab/setup.py
--- reportlab.orig/setup.py     Thu Oct 23 22:06:16 2003
+++ reportlab/setup.py  Thu Oct 23 22:07:24 2003
@@ -18,7 +18,7 @@

 pjoin = os.path.join

-package_path = pjoin(package_home(distutils.__dict__), 'reportlab')
+package_path = pjoin(package_home(distutils.__dict__), 'site-packages',
'reportlab')


 # why oh why don't most setup scripts have a script handler?

Regards,
Dirk