title: How to perform custom build steps in setup.py?
body: <p>The <code>distutils</code> module allows to include and install resource files together with Python modules. How to properly include them if resource files should be generated during a building process?</p>
  
  <p>For example, the project is a web application which contains CoffeeScript sources that should be compiled into JavaScript and included in a Python package then. Is there a way to integrate this into a normal sdist/bdist process?</p>