diff options
author | Simon Glass <sjg@chromium.org> | 2024-08-11 09:02:46 -0600 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2024-08-12 11:45:25 +1000 |
commit | e277553b98800f4071017e04166573349aa5078c (patch) | |
tree | 732662f1fc7a1dc097236f0190193453f427ba67 | |
parent | 7e5a88984081c29097c8cfa4bb666ef9174b6ca5 (diff) | |
download | dtc-e277553b98800f4071017e04166573349aa5078c.zip dtc-e277553b98800f4071017e04166573349aa5078c.tar.gz dtc-e277553b98800f4071017e04166573349aa5078c.tar.bz2 |
setup: Collect top-level code together
Move most of the top-level code together, with the classes and functions
above, for easier reading.
The srcdir is left where it is for now.
Signed-off-by: Simon Glass <sjg@chromium.org>
Message-ID: <20240811150248.7537-4-sjg@chromium.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rwxr-xr-x | setup.py | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -47,6 +47,15 @@ def get_top_builddir(): return sys.argv.pop(index) return srcdir + +class BuildPy(_build_py): + """Small class to run the build_ext command""" + def run(self): + self.run_command("build_ext") + return super().run() + + +version, long_description = scan_for_info(srcdir) top_builddir = get_top_builddir() libfdt_module = Extension( @@ -60,14 +69,6 @@ libfdt_module = Extension( ) -class BuildPy(_build_py): - """Small class to run the build_ext command""" - def run(self): - self.run_command("build_ext") - return super().run() - -version, long_description = scan_for_info(srcdir) - setup( name='libfdt', version=version, |