]> git.phdru.name Git - git-scripts.git/blobdiff - hooks/post-checkout/compyle
Exclude .tox/ virtual environments when compiling byte code
[git-scripts.git] / hooks / post-checkout / compyle
index dce8b0114b3cc200219f6ab63e63848a61cd901b..0952d434b372071a44d088f93a024ddc80512229 100755 (executable)
@@ -8,8 +8,8 @@ new_HEAD="$2"
 new_branch="$3"
 
 if [ "$new_branch" = 1 ]; then
-   python2.7 -m compileall -q . &&
-   python2.7 -O -m compileall -q .
+   python    -m compileall -q -x '\.tox/.+' . &&
+   python -O -m compileall -q -x '\.tox/.+' .
 fi
 
 exit 0