469,898 Members | 1,707 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

RPM generation with distutils: a little help, please.

For the following setup.py, I get this error:

byte-compiling /var/tmp/bhsys-buildroot/usr/lib/python2.3/site-packages/bhsys/Impressao.py
to Impressao.pyc
byte-compiling /var/tmp/bhsys-buildroot/usr/lib/python2.3/site-packages/bhsys/bhsys.py
to bhsys.pyc
running install_scripts
copying build/scripts-2.3/bhsys.py -> /var/tmp/bhsys-buildroot/usr/bin
changing mode of /var/tmp/bhsys-buildroot/usr/bin/bhsys.py to 755
running install_data
error: can't copy 'imagens/BH_Sys.png': doesn't exist or not a regular file
erro: Status de saída ruim em /var/tmp/rpm-tmp.39012 (%install)
============================= setup.py ====================================
import os
from distutils.core import setup
import distutils.sysconfig

description="BH Sys",
author="G2C Tech Consultoria Ltda.",
packages=['bhsys.biblioteca', 'bhsys'],
package_dir = {'bhsys': '.',
'biblioteca': 'biblioteca',},
data_files=[(os.path.sep.join([distutils.sysconfig.get_python_lib(),'bhsys','imag ens']),
['imagens/BH_Sys.png', 'imagens/BH_SysB.png',
'imagens/BH_logo.png', 'imagens/adm.png',
'imagens/compras.png', 'imagens/exit.png',
'imagens/g2ctech.png', 'imagens/manutencao.png',
'imagens/rh.png', 'imagens/sair.png', 'imagens/seta.png',
'imagens/seta2.png', 'imagens/tecnico.png',

================================================== =========================

Any hints on how I can make it work? And, please, is there a more effective
way of putting the images (imagens, in pt_BR) below the site-packages/bhsys

This is working perfectly for tarballs and it is also able to create a
".exe" installer on Windows, but it fails for RPM.

The image file pointed out in the error message is there... I think it's
something related to copying it to the specific directory used by rpmbuild
in the specfile, but is there any way to do that from distutils?
Godoy. <go***@ieee.org>
Jul 18 '05 #1
0 1168

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by A.M. Kuchling | last post: by
1 post views Thread by Mathieu Malaterre | last post: by
reply views Thread by Christopher De Vries | last post: by
1 post views Thread by Terry Hancock | last post: by
3 posts views Thread by Qiangning Hong | last post: by
1 post views Thread by George van den Driessche | last post: by
1 post views Thread by olsongt | last post: by
7 posts views Thread by Eric S. Johansson | last post: by
reply views Thread by newbie73 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.