title: Freezing a Python application on Travis CI
body: <p>I am trying to freeze a Python application within Travis CI via a Github project. I manage to successfully invoke the installation of the <code>freeze.py</code> utility via <code>pip</code> within Travis, but when I attempt to freeze the Python program it runs but does not generate the necessary C and Makefile needed to build an executable.</p>
  
  <p>This is my <code>.travis.yml</code>:</p>
  
  <pre><code>language: python
  python:
     - "2.7"
  
  # Command to install dependencies
  install: "pip install freeze"
  
  # Command to build with `rake`
  script: rake default
  </code></pre>
  
  <p>And this is my Rakefile:</p>
  
  <pre><code>#
  # Rakefile to build standalone `secho` Unix-like executable program on Travis CI.
  # To build on your own system; please use `make` instead.
  #
  freeze = "python /home/travis/virtualenv/python2.7/lib/python2.7/site-           packages/pip/commands/freeze.py"
  io = "secho"
  
  task :default =&gt; [:freeze, :compile]
  
  task :freeze do
    sh "python #{io}.py python test output - OK"
    sh "#{freeze} #{io}.py" # This runs but there is no console output &amp; nothing generated.
  end
  
  task :compile do
    sh "ls"
    sh "make -f Makefile"
    sh "strip #{io}"
    sh "rm -f Makefile *.o *.c"
    sh "./#{io} compiled test output - OK"
  end
  
  task :clean do
    sh "rm -f #{io}"
  end
  
  task :test do
    puts "dummy test"
  end
  </code></pre>
  
  <p>Only running the script with Python in the first task <code>:freeze</code> seems to complete successfully. What have I done wrong? </p>
  
  <p>Many thanks,</p>
  
  <p>Sam.</p>
  
  <p><a href="https://github.com/stpettersens/super-echo" rel="nofollow">https://github.com/stpettersens/super-echo</a></p>