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 import os
main_etc_files = [] 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): if os.path.isfile(comp):
main_etc_files.append(comp) main_etc_files.append(comp)
etc_data_files = [(os.path.join('etc', 'lorax'), main_etc_files)] 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): 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_path = os.path.join('etc', 'lorax', os.path.basename(comp))
etc_data_files.append((etc_path, sub_files)) etc_data_files.append((etc_path, sub_files))
data_files = [(os.path.join('usr', 'share', 'lorax'), 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', setup(name='lorax',
version='0.1', version='0.1',