From b987b2abaafffa53735b2a52b744c8681dd95d0d Mon Sep 17 00:00:00 2001
From: David Schmitz <schmitz@lrz.de>
Date: Fri, 10 Sep 2021 12:01:37 +0000
Subject: [PATCH] workaround for broken python anyjson dependencies

---
 install-centos.sh | 5 +++++
 requirements.txt  | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/install-centos.sh b/install-centos.sh
index 60e111ed..a2343b4f 100755
--- a/install-centos.sh
+++ b/install-centos.sh
@@ -52,6 +52,9 @@ if [ "$install_fodproper" = 0 ]; then
   echo "Setup partial python environment for FoD"
   virtualenv-3 /srv/venv
   source /srv/venv/bin/activate
+
+  #fix for broken anyjson and cl
+  pip install 'setuptools<58'
   pip install -r requirements.txt
 
 else
@@ -90,6 +93,8 @@ else
 		cp -f settings.py.dist settings.py
 		patch settings.py < settings.py.patch
 	)
+
+        pip install 'setuptools<58'
 	pip install -r requirements.txt
 
 	touch flowspy/settings_local.py
diff --git a/requirements.txt b/requirements.txt
index 037736b9..4e5b414d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
+setuptools<58
 argparse
 cl
 celery==4.4.0
@@ -34,4 +35,3 @@ appdirs
 anyjson
 cryptography
 redis
-
-- 
GitLab