[kde-linux/kde-linux-packages] /: add supremely awesome hack to criple python so pacman can install modules
Harald Sitter <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit b06b26b6127274647d92d475dd2c6dc4c68317d5 by Harald Sitter.
Committed on 17/07/2026 at 20:14.
Pushed by sitter into branch 'master'.
add supremely awesome hack to criple python so pacman can install modules
M +4 -1 install-kde-deps.py
https://invent.kde.org/kde-linux/kde-linux-packages/-/commit/b06b26b6127274647d92d475dd2c6dc4c68317d5
diff --git a/install-kde-deps.py b/install-kde-deps.py
index 7bfcad0..711a542 100644
--- a/install-kde-deps.py
+++ b/install-kde-deps.py
@@ -116,6 +116,9 @@ def load_deps_from_yaml(url, targets):
def install_arch(packages):
packages = list(set(packages))
+ # supremely awesome hack to make the build succeed with part of python pips installed from pip and the other from pacman
+ # this either needs fixing properly or we need to move to buildstream!
+ subprocess.run(["sh", "-c", "rm -rfv /usr/lib/python*/site-packages/{psutil,click}"], check=True)
cmd = ["pacman", "-S", "--noconfirm", "--needed", "--asdeps"] + packages
logger.info(f"Installing {len(packages)} packages via pacman: {', '.join(sorted(packages))}")
result = subprocess.run(cmd)
@@ -154,4 +157,4 @@ def main():
if __name__ == "__main__":
- main()
\ No newline at end of file
+ main()