title: Using Gradle to build Python application
body: <p>I use Python, PyQt, MySQL and Pyinstaller to build stand alone exe applications.  I am very satisfied with the flexibility of this environment.  Today however, I manually run independent commands to do the following types of tasks:</p>
  
  <ol>
  <li>Build .qrc resource files for all .qrc files in source path</li>
  <li>Build .ui qt-designer files for all .ui files in source path</li>
  <li>Build python exe using pyinstaller</li>
  <li>Delete the generated files because they clutter the source directory and are no longer needed</li>
  <li>Run my own custom script to build an installer for the pyinstaller generated exe</li>
  </ol>
  
  <p>I would like to use Gradle as a build system for these tasks.  I realize Gradle is mostly used for Java projects, but I see no reason it can't be used for Python projects.  </p>
  
  <p><em>Does anyone have a similar working example of a gradle.build file for the above tasks?  Or... provide help in creating one?</em></p>
  
  <p>Here are a few detailed examples of the above commands:</p>
  
  <pre><code>C:/Python27/Lib/site-packages/PyQt4/pyuic4.bat $file &gt; ${file_base_name}_ui.py
  C:/Python27/Lib/site-packages/PyQt4/pyrcc4.exe $file -o ${file_base_name}_rc.py
  c:/python27/python.exe c:/pyinstaller/pyinstaller.py --onefile --noconsole --out=$file_path/$file
  </code></pre>