diff --git a/build.sh b/build.sh
index 1240067a636d976b25fe4f037a9c300e34f0efd0..ce455639ce740840f8dcabeefba1b952519c61af 100644
--- a/build.sh
+++ b/build.sh
@@ -4,6 +4,7 @@ set -x
 set -e
 
 python -m coolamqp.framing.compilation.compile_definitions
+rm -f coolamqp/framing/compilation/compile_definitions.py
 python setup.py bdist bdist_wheel
 
 if [ $TRAVIS_BRANCH == "master" ]; then