473,490 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

distutils: trouble with data_files + RPM

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.

--
Torsten Bronger, aquisgrana, europa vetus
ICQ 264-296-646
(See http://ime.webhop.org for Jabber, MSN, etc.)
Dec 10 '06 #1
0 988

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2243
by: PenguinOfDoom | last post by:
For whatever reason, distutils does not change file permissions of stuff in data_files in core.setup and neither does it allow specifying these permissions. The CVS repository I am using assigns...
5
7519
by: Christian Seberino | last post by:
I have a setup.py with something like this: import glob .... setup( ..., ..., data_files =
0
1210
by: John Hunter | last post by:
What is the best way to get the target install dir from distutils when python setup.py install is run. Eg, on a standard python install to /usr/local I want ...
8
1722
by: Johan Svedberg | last post by:
Hi! I just started playing around with Distutils and there is one thing I could use some help with. I'm wondering if there is some convenient way to access the directories where the data_files...
1
2640
by: Mathieu Malaterre | last post by:
Hello, I thought this would be easy but I guess I didn't get the distutil feeling. I am trying to write a setup for install my package but I don't understand how to do that. organisation: ...
7
2287
by: Frans Englich | last post by:
This is silly. How do I access data files I've installed with distutils? In a portable, generic way, I want to find out what is the following path on most systems: ...
0
1109
by: Saketh | last post by:
I'm having trouble getting the data_files argument of my setup.py to work with "python setup.py sdist" under Windows XP. Here is the data_files argument that I pass to setup(). data_files = , )...
7
1523
by: Eric S. Johansson | last post by:
is there anyway I can, in a setup.py file, set and internal equivalent to the '--install-scripts' commandline option? script installation directory but I don't want on the command line where...
0
1196
by: Anastasios Hatzis | last post by:
I would like to let my setup script know if the user has provided a custom path for the data_files of my distribution, e.g. by using the --install-data option, so the setup can automagically change...
0
916
by: Jonathan Fine | last post by:
Hello I'm writing a package that has cgi-bin scripts, html files and data files (templates used by cgi scripts). I find that using distutils in the standard way does not give me enough...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7356
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.