]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Fix dependency issue with strongTNC
authorTobias Brunner <tobias@strongswan.org>
Mon, 24 Aug 2020 14:22:18 +0000 (16:22 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Sep 2020 12:56:58 +0000 (14:56 +0200)
Apparently, djangorestframework-camel-case, in the referenced version,
uses `six` but does not itself require/install it (later versions removed
Python 2 support altogether).

testing/scripts/recipes/015_strongTNC.mk

index 4e2925ff0d8e909ef4df88fa1f263e08347b8d9c..51c9894c6f7afdbb78e911b91718d44392755c47 100644 (file)
@@ -15,8 +15,9 @@ $(PKG)-master: $(ZIP)
 
 $(DEPS): $(PKG)-master
        mkdir -p $(DEPS)
-       pip download -d $(DEPS) -r $(PKG)-master/requirements.txt
+       pip download -d $(DEPS) -r $(PKG)-master/requirements.txt six
 
 install: $(DEPS)
-       pip install --no-index --find-links=file://`pwd`/$(DEPS) -r $(PKG)-master/requirements.txt
+       # six is required for djangorestframework-camel-case
+       pip install --no-index --find-links=file://`pwd`/$(DEPS) -r $(PKG)-master/requirements.txt six
        cp -r $(PKG)-master /var/www/tnc && chgrp -R www-data /var/www/tnc && chmod g+sw /var/www/tnc