summaryrefslogtreecommitdiff
path: root/scripts/dtc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dtc')
-rwxr-xr-xscripts/dtc/pylibfdt/setup.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/dtc/pylibfdt/setup.py b/scripts/dtc/pylibfdt/setup.py
index 9abdb57595..c07f65e6bc 100755
--- a/scripts/dtc/pylibfdt/setup.py
+++ b/scripts/dtc/pylibfdt/setup.py
@@ -20,16 +20,12 @@ allows this script to be run stand-alone, e.g.:
./pylibfdt/setup.py install [--prefix=...]
"""
-from setuptools import setup, Extension
+from setuptools import setup, Extension, sic
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:
@@ -141,7 +137,7 @@ class build_py(_build_py):
setup(
name='libfdt',
- version=version,
+ version=sic(version),
cmdclass = {'build_py' : build_py},
author='Simon Glass',
author_email='sjg@chromium.org',