]> git.phdru.name Git - git-scripts.git/blobdiff - hooks/post-checkout/compyle-all
Exclude .tox/ virtual environments when compiling byte code
[git-scripts.git] / hooks / post-checkout / compyle-all
index daf6ab3d995c7f46a69b207acc392c893706105f..d4887f6a554c092940c3c904d243e1384cc835eb 100755 (executable)
@@ -2,7 +2,7 @@
 
 # post-checkout hook that compiles python files to byte code
 
-python2.7 -m compileall -q . &&
-python2.7 -O -m compileall -q .
+python    -m compileall -q -x '\.tox/.+' . &&
+python -O -m compileall -q -x '\.tox/.+' .
 
 exit 0