Patch *all* references to sys.exec_prefix.

This commit is contained in:
vi 2014-03-25 03:28:19 +08:00
parent ed7c311876
commit 5149f278aa

View File

@ -16,7 +16,7 @@ in pythonPackages.buildPythonPackage rec {
];
preConfigure = ''
substituteInPlace setup.py --replace /usr $out
substituteInPlace setup.py --replace sys.exec_prefix \"$out\"
find . -type f -exec grep -H sys.exec_prefix {} ';' | cut -d: -f1 | xargs sed -i s,sys.exec_prefix,\"$out\",
'';
installCommand = "python setup.py install --prefix=$out";
meta = {