@@ -37,6 +37,9 @@ wrapPythonProgramsIn() {
3737 # dont wrap EGG-INFO scripts since they are called from python
3838 if echo "$f" | grep -qv EGG-INFO/scripts; then
3939 echo "wrapping \`$f'..."
40+ # The magicalSedExpression will invoke a "$(basename "$f")", so
41+ # if you change $f to something else, be sure to also change it
42+ # in pkgs/top-level/python-packages.nix!
4043 sed -i "$f" -re '@magicalSedExpression@'
4144 # wrapProgram creates the executable shell script described
4245 # above. The script will set PYTHONPATH and PATH variables.!