Fix more problems in setup.py.

This commit is contained in:
David Cantrell 2008-10-04 20:09:04 -10:00
parent 46052c010d
commit f1375c5ea8

View File

@ -3,20 +3,20 @@ import glob
import os
main_etc_files = []
for comp in glob.glob(os.path.join(os.getcwd(), 'etc', '*'):
for comp in glob.glob(os.path.join(os.getcwd(), 'etc', '*')):
if os.path.isfile(comp):
main_etc_files.append(comp)
etc_data_files = [(os.path.join('etc', 'lorax'), main_etc_files)]
for comp in glob.glob(os.path.join(os.getcwd(), 'etc', '*'):
for comp in glob.glob(os.path.join(os.getcwd(), 'etc', '*')):
if os.path.isdir(comp):
sub_files = glob.glob(comp, '*')
sub_files = glob.glob(os.path.join(comp, '*'))
etc_path = os.path.join('etc', 'lorax', os.path.basename(comp))
etc_data_files.append((etc_path, sub_files))
data_files = [(os.path.join('usr', 'share', 'lorax'),
glob.glob('share/*'))] + etc_data_files
glob.glob(os.path.join('share', '*')))] + etc_data_files
setup(name='lorax',
version='0.1',