In article <4d86be29.8070...@netwok.org>, Éric Araujo <mer...@netwok.org> wrote: > Le 20/03/2011 02:59, Ned Deily a écrit : > > On a Unix-y system, here is one way to do it (no warranty on the > > installation instructions!): > With all due respect, the instructions are overly complicated, and may > also run afoul of the system conventions (sudo will put files in > directories that should not be touched for example).
That depends on your configuration but ... > Here’s my take: > > Get the code > $ cd where/ever > $ hg clone http://hg.python.org/hooks > > Edit your user ~/.hgrc of the cpython clones .hg/hgrc to enable the hook > [hooks] > pretxncommit.whitespace = > python:/home/you/where/ever/hooks/checkwhitespace.py:check_whitespace_single that's *much* better, thanks! The hg documentation does not make it clear that, in the absolute path case, PYTHONPATH does not need to be manipulated, which is what I was trying to avoid. Perhaps you could add those instructions to the devguide? -- Ned Deily, n...@acm.org _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com