From d6d10506e19f9ef5fcc7cd527995790534d3bec6 Mon Sep 17 00:00:00 2001 From: Jens Kadenbach Date: Wed, 23 Jul 2014 22:47:09 +0000 Subject: [PATCH 1/2] Remove magic import from sh module Since the magic import "from sh import pip" is harder to debug and has problems on some systems, it is now substituted by a conventional pip-command object creation. --- mayan/apps/installation/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/installation/classes.py b/mayan/apps/installation/classes.py index 178b2b3e46..9b0aed1c8d 100644 --- a/mayan/apps/installation/classes.py +++ b/mayan/apps/installation/classes.py @@ -7,7 +7,7 @@ import os import sh try: - from sh import pip + pip = sh.Command('pip') PIP = True except sh.CommandNotFound: PIP = False From 2e68dc56707bfe9e5384406862e708b49cb46c5c Mon Sep 17 00:00:00 2001 From: Jens Kadenbach Date: Wed, 23 Jul 2014 22:49:49 +0000 Subject: [PATCH 2/2] Added Jens Kadenbach to contributors --- docs/credits/contributors.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/credits/contributors.rst b/docs/credits/contributors.rst index e399d26b95..2871425553 100644 --- a/docs/credits/contributors.rst +++ b/docs/credits/contributors.rst @@ -20,6 +20,7 @@ Contributors (in alphabetical order) * Bertrand Bordage (https://github.com/BertrandBordage) * Brian E (brian@realize.org) * David Herring (https://github.com/abadger1406) +* Jens Kadenbach (https://github.com/audax) * Kolmar Kafran * IHLeanne (https://github.com/IHLeanne) * Iliya Georgiev (ikgeorgiev@gmail.com)