distutils: trouble with data_files + RPM

T

Torsten Bronger

Hallöchen!

I try to distribute a Python application with i18n files (.mo). My
setup.py says:

....
data_files = [('share/locale/de/LC_MESSAGES', ['po/de/felo.mo'])],
packages = ['felo'],
package_dir = {'felo': 'src'},

The directory structure seen from setup.py is:

../setup.py
po/
src/

This works perfectly with the bdist_dumb command. However, when I
try to generate an RPM, it says:

....
running install_data
creating /var/tmp/Felo-1.0-1-buildroot/usr/share
creating /var/tmp/Felo-1.0-1-buildroot/usr/share/locale
creating /var/tmp/Felo-1.0-1-buildroot/usr/share/locale/de
creating /var/tmp/Felo-1.0-1-buildroot/usr/share/locale/de/LC_MESSAGES
error: can't copy 'po/de/felo.mo': doesn't exist or not a regular file
error: Bad exit status from /var/tmp/rpm-tmp.6388 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.6388 (%install)
error: command 'rpmbuild' failed with exit status 1

What can I do about it? Thank you!

Tschö,
Torsten.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,197
Latest member
ScottChare

Latest Threads

Top