summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungSoo Lee <youngsoo15.lee@gmail.com>2021-07-02 20:48:28 +0900
committerYoungSoo Lee <youngsoo15.lee@gmail.com>2021-07-13 11:09:12 +0900
commit5d4184924ef27bb2d37a1e6e54a041a057ae70fc (patch)
tree43e60f6ddc6713ff68a7f0cb0cd5558cca5fa4a2
parent79c819cd445e993800f71b1d015a45bc8fe610d7 (diff)
bootstrap: fix build_tools error
If `setuptools.version` contains a string, an error occurs. So, it was modified to extract only semver from `version`. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/711>
-rw-r--r--cerbero/bootstrap/build_tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cerbero/bootstrap/build_tools.py b/cerbero/bootstrap/build_tools.py
index 6f5c8095..271b2407 100644
--- a/cerbero/bootstrap/build_tools.py
+++ b/cerbero/bootstrap/build_tools.py
@@ -100,8 +100,8 @@ class BuildTools (BootstrapperBase, Fetch):
except ImportError:
return
- version = [int(v) for v in stv.__version__.split('.')]
- if len(version) < 1 or version[:1] < [49]:
+ version = stv.__version__.split('.', 1)
+ if len(version) < 1 or int(version[0]) < 49:
return
m.warning('detected setuptools >= 49.0.0, installing fallback site.py file. '