Write Makefile and correct problems in setup.py.
This commit is contained in:
parent
e85f18bb5b
commit
5623014506
14
Makefile
Normal file
14
Makefile
Normal 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
|
26
setup.py
26
setup.py
@ -1,15 +1,15 @@
|
||||
import distutils
|
||||
from distutils.core import setup
|
||||
import glob
|
||||
|
||||
distutils.core.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'],
|
||||
scripts = ['src/bin/lorax.py'],
|
||||
data_files = [('/usr/share/lorax', glob.glob('share/*'),
|
||||
('/etc/lorax', glob.glob('etc/*')]
|
||||
)
|
||||
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'],
|
||||
scripts = ['src/bin/lorax.py'],
|
||||
data_files = [('/usr/share/lorax', glob.glob('share/*')),
|
||||
('/etc/lorax', glob.glob('etc/*'))]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user