2008-10-05 05:51:17 +00:00
|
|
|
from distutils.core import setup
|
2008-10-05 05:46:04 +00:00
|
|
|
import glob
|
2008-10-05 06:05:53 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
main_etc_files = []
|
2008-10-05 06:09:04 +00:00
|
|
|
for comp in glob.glob(os.path.join(os.getcwd(), 'etc', '*')):
|
2008-10-05 06:05:53 +00:00
|
|
|
if os.path.isfile(comp):
|
|
|
|
main_etc_files.append(comp)
|
|
|
|
|
2008-10-05 06:14:31 +00:00
|
|
|
etc_data_files = [(os.path.join(os.path.sep, 'etc', 'lorax'),
|
|
|
|
main_etc_files)]
|
2008-10-05 06:05:53 +00:00
|
|
|
|
2008-10-05 06:09:04 +00:00
|
|
|
for comp in glob.glob(os.path.join(os.getcwd(), 'etc', '*')):
|
2008-10-05 06:05:53 +00:00
|
|
|
if os.path.isdir(comp):
|
2008-10-05 06:09:04 +00:00
|
|
|
sub_files = glob.glob(os.path.join(comp, '*'))
|
2008-10-05 06:14:31 +00:00
|
|
|
etc_path = os.path.join(os.path.sep, 'etc', 'lorax', os.path.basename(comp))
|
2008-10-05 06:05:53 +00:00
|
|
|
etc_data_files.append((etc_path, sub_files))
|
|
|
|
|
2008-10-05 06:15:56 +00:00
|
|
|
data_files = [(os.path.join(os.path.sep, 'usr', 'share', 'lorax'),
|
|
|
|
glob.glob(os.path.join('share', '*')))] + etc_data_files
|
2008-10-05 05:46:04 +00:00
|
|
|
|
2008-10-05 05:51:17 +00:00
|
|
|
setup(name='lorax',
|
|
|
|
version='0.1',
|
|
|
|
description='Boot image build tool',
|
|
|
|
author='David Cantrell',
|
|
|
|
author_email='dcantrell@redhat.com',
|
|
|
|
license='GPLv2+',
|
|
|
|
package_dir = {'': 'src'},
|
|
|
|
packages = ['pylorax'],
|
2008-10-05 06:09:46 +00:00
|
|
|
scripts = [os.path.join('src', 'bin', 'lorax')],
|
2008-10-05 06:05:53 +00:00
|
|
|
data_files = data_files
|
2008-10-05 05:51:17 +00:00
|
|
|
)
|