[reportlab-users] [PATCH] Fix setup.py

Thomas Petazzoni thomas.petazzoni at enix.org
Tue Sep 18 05:10:16 EDT 2007


Hi,

The setup.py of reportlab available in the current Subversion
repository doesn't allow to install reportlab in a specific prefix
path, because it hardcodes installation of files
to /usr/lib/python-2.5/.

The attached patch fixes the issue for me, but is not perfect. It
correctly fixes the issue for all the data files of reportlab, using the
package_data directive instead of the data_files directive.

However, the fix for the specific case for hyphen.mashed is not correct
(it install it in $prefix/lib). I don't know where this file should be
installed. According to lib/utils.py, I'd say it should go to
$prefix/lib/python-2.5/site-packages/reportlab/lib/. Is that correct ?

If so, I don't know how to install it using the package_data directive.
Ideas ?

Sincerly,

Thomas
--
Thomas Petazzoni - thomas.petazzoni at enix.org
http://{thomas,sos,kos}.enix.org - http://www.toulibre.org
http://www.{livret,agenda}dulibre.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reportlab-setup.py-fix
Type: application/octet-stream
Size: 2456 bytes
Desc: not available
Url : <http://two.pairlist.net/pipermail/reportlab-users/attachments/20070918/8872e786/attachment.obj>


More information about the reportlab-users mailing list