diff --git a/.travis.yml b/.travis.yml
index 594b38acd6e5b3c9d8524fc0b7af0e191b2fd412..13edfd4ecaf32103bbd7d40a5d2f4c9779571277 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,7 +10,7 @@ cache:
     - $HOME/build/smok-serwis/coolamqp/.eggs
     - $HOME/.cache
 script:
- - python -m coolamqp.framing.compilation.compile_definitions
+ - python compile_definitions.py
  - python setup.py nosetests
 install:
  - pip install -r requirements.txt
diff --git a/build.sh b/build.sh
index ce455639ce740840f8dcabeefba1b952519c61af..7aa0c0b2699507ee2b4ecfbcb1ac39b6b62e987b 100644
--- a/build.sh
+++ b/build.sh
@@ -3,8 +3,7 @@
 set -x
 set -e
 
-python -m coolamqp.framing.compilation.compile_definitions
-rm -f coolamqp/framing/compilation/compile_definitions.py
+python compile_definitions.py
 python setup.py bdist bdist_wheel
 
 if [ $TRAVIS_BRANCH == "master" ]; then
diff --git a/coolamqp/framing/compilation/compile_definitions.py b/compile_definitions.py
similarity index 100%
rename from coolamqp/framing/compilation/compile_definitions.py
rename to compile_definitions.py
diff --git a/tests/test_framing/test_compilation.py b/tests/test_framing/test_compilation.py
index 90632c48724f4628d4061994af8f5062d57180c6..14d8bc8042f662a23fccf2d1f1660ed435cdf335 100644
--- a/tests/test_framing/test_compilation.py
+++ b/tests/test_framing/test_compilation.py
@@ -1,12 +1,12 @@
 # coding=UTF-8
 from __future__ import print_function, absolute_import, division
-import six
+
 import unittest
 
 
 class TestCompilation(unittest.TestCase):
     def test_comp(self):
-        from coolamqp.framing.compilation.compile_definitions import \
+        from compile_definitions import \
             compile_definitions
         compile_definitions(xml_file='resources/amqp0-9-1.extended.xml',
                             out_file='/tmp/definitions.py')