aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-12-15 23:37:59 +0100
committerTom Rini <trini@konsulko.com>2022-12-22 10:40:36 -0500
commitb4aa285c8580804eb1c6297518f2d0e25c3b4a26 (patch)
tree32f7abb1cb70dee1e48b96f6c6cd1f877e534343
parent250fa22c7ec24f6ee78d61efe8791b6b763d2d60 (diff)
downloadu-boot-WIP/2022-12-22-assorted-important-fixes.zip
u-boot-WIP/2022-12-22-assorted-important-fixes.tar.gz
u-boot-WIP/2022-12-22-assorted-important-fixes.tar.bz2
pylibfdt: Fix version normalization warningWIP/2022-12-22-assorted-important-fixes
Fix the following version normalization warning: " /usr/lib/python3/dist-packages/setuptools/dist.py:530: UserWarning: Normalizing '2023.01' to '2023.1' " Using suggestion from Richard Jones: https://github.com/pypa/setuptools/issues/308#issuecomment-405817468 Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
-rwxr-xr-xscripts/dtc/pylibfdt/setup.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dtc/pylibfdt/setup.py b/scripts/dtc/pylibfdt/setup.py
index ec1fc50..9abdb57 100755
--- a/scripts/dtc/pylibfdt/setup.py
+++ b/scripts/dtc/pylibfdt/setup.py
@@ -22,10 +22,14 @@ allows this script to be run stand-alone, e.g.:
from setuptools import setup, Extension
from setuptools.command.build_py import build_py as _build_py
+from setuptools.extern.packaging import version
import os
import re
import sys
+# Disable version normalization
+version.Version = version.LegacyVersion
+
srcdir = os.path.dirname(__file__)
with open(os.path.join(srcdir, "../README"), "r") as fh: