[reportlab-users] installation dir troubles

Frederik Himpe fhimpe at telenet.be
Mon Jun 25 16:43:30 EDT 2007


I am trying to create a reportlab 2.1 RPM package for Mandriva, but I
encounter some troubles.

As python-reportlab is platform-independant, it should be installed in
/usr/lib/python2.5, even on x86_64 arch, where /usr/lib64/ is used.

Now when I run python-reportlab, the things which are byte-compiled are
indeed installed in /usr/lib/python2.5/site-packages/reportlab. But then
it says
Running install_data
and it installs a bunch of files in /usr/lib64/python2.5/site-packages/
reportlab, which is not consistent with the first location.

It think this part in setup.py is responsible for this problem:
tn = dirname(fn)
tn = tn and pjoin(package_path,tn) or package_path
DATA_FILES.setdefault(tn,[]).append(fn)

AFAIK other python packages just add file names to data_files, without an
absolute path. Could this be fixed?

--
Frederik



More information about the reportlab-users mailing list