From d38be90c1d67717c7113486414e65d8b2c8c4151 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 5 Jun 2016 14:13:39 +0300 Subject: [PATCH] Add post-checkout hook that compiles python files --- hooks/post-checkout/compyle-all | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 hooks/post-checkout/compyle-all diff --git a/hooks/post-checkout/compyle-all b/hooks/post-checkout/compyle-all new file mode 100755 index 0000000..daf6ab3 --- /dev/null +++ b/hooks/post-checkout/compyle-all @@ -0,0 +1,8 @@ +#!/bin/sh + +# post-checkout hook that compiles python files to byte code + +python2.7 -m compileall -q . && +python2.7 -O -m compileall -q . + +exit 0 -- 2.39.5