From 7458f29dc9515c51f86995528187b5182c37a14f Mon Sep 17 00:00:00 2001 From: Domen Kozar Date: Mon, 29 Jul 2013 19:31:58 +0200 Subject: [PATCH] don't wrap scripts in EGG-INFO/scripts since they are called from python --- pkgs/development/python-modules/generic/wrap.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/generic/wrap.sh b/pkgs/development/python-modules/generic/wrap.sh index 6b02369927b..a7c839799b1 100644 --- a/pkgs/development/python-modules/generic/wrap.sh +++ b/pkgs/development/python-modules/generic/wrap.sh @@ -23,10 +23,13 @@ wrapPythonProgramsIn() { fi if head -n1 "$i" | grep -q /python; then - echo "wrapping \`$i'..." - wrapProgram "$i" \ - --prefix PYTHONPATH ":" $program_PYTHONPATH \ - --prefix PATH ":" $program_PATH + # dont wrap EGG-INFO scripts since they are called from python + if echo "$i" | grep -v EGG-INFO/scripts; then + echo "wrapping \`$i'..." + wrapProgram "$i" \ + --prefix PYTHONPATH ":" $program_PYTHONPATH \ + --prefix PATH ":" $program_PATH + fi fi done }