diff options
author | Chris Packham <judge.packham@gmail.com> | 2015-07-22 21:21:46 +1200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-28 10:36:25 -0600 |
commit | 488d19cbcace0b87a2d08881eab7356088198903 (patch) | |
tree | f9281221aab01bd319535e2c9f2b24d892c93e67 /tools/patman/patman.py | |
parent | 1ed6648be08e4da76a08a09317932c73db0745ff (diff) |
patman: add distutils based installer
To make it easier to use patman on other projects add a distutils style
installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py install
There are also the usual distutils options for creating source/binary
distributions of patman.
Tested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/patman.py')
-rwxr-xr-x | tools/patman/patman.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tools/patman/patman.py b/tools/patman/patman.py index 6c6473e462..e76fc42dd1 100755 --- a/tools/patman/patman.py +++ b/tools/patman/patman.py @@ -14,14 +14,18 @@ import sys import unittest # Our modules -import checkpatch -import command -import gitutil -import patchstream -import project -import settings -import terminal -import test +try: + from patman import checkpatch, command, gitutil, patchstream, \ + project, settings, terminal, test +except ImportError: + import checkpatch + import command + import gitutil + import patchstream + import project + import settings + import terminal + import test parser = OptionParser() |