diff options
author | Domen Kožar <domen@dev.si> | 2015-03-07 22:31:40 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2015-03-07 22:31:40 +0100 |
commit | 0fd3db4ba1d1d6d3a6108970ef96b24853593414 (patch) | |
tree | 86e5e3fc0e9bf2d95d927c31cd0b92f66871b7c4 /pkgs/development/python-modules | |
parent | 0e0bc3ac86f28912d12641bc2895445850b5448d (diff) | |
download | nixlib-0fd3db4ba1d1d6d3a6108970ef96b24853593414.tar nixlib-0fd3db4ba1d1d6d3a6108970ef96b24853593414.tar.gz nixlib-0fd3db4ba1d1d6d3a6108970ef96b24853593414.tar.bz2 nixlib-0fd3db4ba1d1d6d3a6108970ef96b24853593414.tar.lz nixlib-0fd3db4ba1d1d6d3a6108970ef96b24853593414.tar.xz nixlib-0fd3db4ba1d1d6d3a6108970ef96b24853593414.tar.zst nixlib-0fd3db4ba1d1d6d3a6108970ef96b24853593414.zip |
fix #6548
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/generic/wrap.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/generic/wrap.sh b/pkgs/development/python-modules/generic/wrap.sh index 857f002cace9..e343536b8fa8 100644 --- a/pkgs/development/python-modules/generic/wrap.sh +++ b/pkgs/development/python-modules/generic/wrap.sh @@ -16,13 +16,13 @@ wrapPythonProgramsIn() { done for i in $(find "$dir" -type f -perm +0100); do - # Rewrite "#! .../env python" to "#! /nix/store/.../python". if head -n1 "$i" | grep -q '#!.*/env.*\(python\|pypy\)'; then sed -i "$i" -e "1 s^.*/env[ ]*\(python\|pypy\)^#! $python^" fi - if head -n1 "$i" | grep -q '/python\|/pypy'; then + # catch /python and /.python-wrapped + if head -n1 "$i" | grep -q '/\.\?\(python\|pypy\)'; then # dont wrap EGG-INFO scripts since they are called from python if echo "$i" | grep -v EGG-INFO/scripts; then echo "wrapping \`$i'..." |