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

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top