Write Makefile and correct problems in setup.py.

This commit is contained in:
David Cantrell 2008-10-04 19:51:17 -10:00
parent e85f18bb5b
commit 5623014506
2 changed files with 27 additions and 13 deletions

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
# Makefile for lorax
PYTHON ?= /usr/bin/python
DESTDIR ?= /
all:
$(PYTHON) setup.py build
install:
$(PYTHON) setup.py install --root $(DESTDIR)
clean:
-rm -rf build
-git clean -d -x -f

View File

@ -1,15 +1,15 @@
import distutils from distutils.core import setup
import glob import glob
distutils.core.setup(name='lorax', setup(name='lorax',
version='0.1', version='0.1',
description='Boot image build tool', description='Boot image build tool',
author='David Cantrell', author='David Cantrell',
author_email='dcantrell@redhat.com', author_email='dcantrell@redhat.com',
license='GPLv2+', license='GPLv2+',
package_dir = {'': 'src'}, package_dir = {'': 'src'},
packages = ['pylorax'], packages = ['pylorax'],
scripts = ['src/bin/lorax.py'], scripts = ['src/bin/lorax.py'],
data_files = [('/usr/share/lorax', glob.glob('share/*'), data_files = [('/usr/share/lorax', glob.glob('share/*')),
('/etc/lorax', glob.glob('etc/*')] ('/etc/lorax', glob.glob('etc/*'))]
) )