# HG changeset patch # User Patrick Mezard # Date 1286656829 18000 # Node ID ef500b2f100b8cbc20dfc90b78e17092e730de48 # Parent c6cdc123f6e4da831ca577044f5b5aefdad929f1 setup.py: write libdir as a python string literal diff -r c6cdc123f6e4 -r ef500b2f100b setup.py --- a/setup.py Sat Oct 09 15:13:08 2010 -0500 +++ b/setup.py Sat Oct 09 15:40:29 2010 -0500 @@ -301,7 +301,7 @@ if '\0' in data: continue - data = data.replace('@LIBDIR@', libdir) + data = data.replace('@LIBDIR@', libdir.encode('string_escape')) open(outfile, 'wb').write(data) cmdclass = {'build_mo': hgbuildmo,