diff options
author | Marek Vasut <marex@denx.de> | 2022-12-15 23:37:59 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-22 15:39:13 -0500 |
commit | 440098c42e7369f4b5703a82723b2ce268180a1f (patch) | |
tree | 287ff08214bd70bcd070a2bd904800675ced8167 | |
parent | dd5f07eb6b7ee3b3a26f5d2403f53c630d6a5b02 (diff) | |
download | u-boot-440098c42e7369f4b5703a82723b2ce268180a1f.zip u-boot-440098c42e7369f4b5703a82723b2ce268180a1f.tar.gz u-boot-440098c42e7369f4b5703a82723b2ce268180a1f.tar.bz2 |
pylibfdt: Fix version normalization warning
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-x | scripts/dtc/pylibfdt/setup.py | 4 |
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: |