pylibfdt: Use the correct libfdt version in the module

Use the same version number in the module as with the rest of libfdt. This
can be examined with:

   import pkg_resources
   print pkg_resources.require('libfdt')[0].version

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Simon Glass 2017-03-26 13:06:22 -06:00 committed by David Gibson
parent e91c652af2
commit 9f2e3a3a1f
2 changed files with 4 additions and 2 deletions

View file

@ -16,6 +16,7 @@ progname = sys.argv[0]
files = os.environ['SOURCES'].split()
cflags = os.environ['CPPFLAGS'].split()
objdir = os.environ['OBJDIR']
version = os.environ['VERSION']
libfdt_module = Extension(
'_libfdt',
@ -24,7 +25,7 @@ libfdt_module = Extension(
)
setup (name = 'libfdt',
version = '0.1',
version = version,
author = "Simon Glass <sjg@chromium.org>",
description = """Python binding for libfdt""",
ext_modules = [libfdt_module],