diff --git a/build.sh b/build.sh
index 1e88f52c14e61fc1bd13fc9dc1d0e546e39b6561..cfb7ee8b287622b902647f57a45a8ede35a1c5f2 100644
--- a/build.sh
+++ b/build.sh
@@ -4,7 +4,7 @@ set -x
 set -e
 
 pip install yapf
-python compile_definitions.py
+python -m compile_definitions
 python setup.py bdist bdist_wheel
 
 if [ $TRAVIS_BRANCH == "master" ]; then