[Distutils] newbie question

Fernando San Martín W. snmartin at galilea.cl
Thu Apr 1 05:02:02 EST 2004


hi all!, i have this setup.py script:

from distutils.core import setup
import glob
setup(name="pyGestor",
	version="0.6.0.0",
	url='http://pygestor.gnome.cl',
	author='Galilea S.A.',
	author_email='gestor at galilea.cl',	
	py_modules = [	'ctb_acercade',
			'ctb_def_empresa',
			'ctb_libro_diario',
			'ctb_rutinas',
			'GladeConnect',
			'ctb_busqueda',
			'ctb_ficha',
			'ctb_moneda',
			'ctb_tipo_doc_contable',
			'ctb_comprobante',
			'ctb_frm_main',     
			'ctb_periodo_contable',
			'ctb_tipo_resultado',
			'ctb_consulta_cuenta',  
			'ctb_honorarios',
			'ctb_plan_de_cuentas'			
			],
	scripts = ['Gestor.py'],
	data_files = [	('/usr/local/pyGestor/sql', glob.glob("sql/*.sql")), 
			('/usr/local/pyGestor/glade', glob.glob('glade/*.glade')),
			('/usr/local/pyGestor/pixmaps', glob.glob('pixmaps/*.png')),
		]
	)

i'm trying to create a rpm from this using bdist_rpm command, so i have
some questions.

1.- why *.sql,*.png,*.glade, are not copied into
/usr/local/pyGestor/...?

2.- how can i setup the requires for the rpm, for example pygtk-2.0?

3.- may i copy my modules in /usr/local/pyGestor?

thanks in advance

-- 
Fernando San Martín Woerner        counter.li.org Linux User #216550
Jefe Depto. Informática            Galilea S.A.
Talca, VII Región Chile            (56)71-224876
GNOME Foundation Membership        http://pygestor.gnome.cl




More information about the Distutils-SIG mailing list