py " $( QGISPLUGINSPATH ) \vap" copy vap. py " $( QGISPLUGINSPATH ) \vap" copy ui_control. py " $( QGISPLUGINSPATH ) \vap" copy resources_rc. ui $( UIC ) - o $< install: mkdir2 " $( QGISPLUGINSPATH ) \vap" copy _init_. qrc $( RCC ) - o $ ( basename ) _rc$ ( suffix ) $< %. ui ) ) all: build build: $( QRCPYFILES ) $( UIPYFILES ) %. py UIC = python $( UICPATH ) RCC = pyrcc4 QRCPYFILES : = $ ( patsubst %. qgis\python\plugins UICPATH = C : \Python25\Lib\site - packages\PyQt4\uic\pyuic.
#Make makefile for windows 10 trial#
You can download it from under the make directory.Īfter some trial and errors, I've come up with the following solution for my attempt to a makefile (I will briefly explain the mechanism afterward): ' make' port from the GnuWin32 project looks perfect for the job. I am currently on a Windows system that means I need to find a ' make' utility for my platform (Unix platforms have it by default). This was also an educational experience for me since that was my first makefile generation :). The standard solution to ease a compilation process in the industry is to use a makefile so I have also tried to construct a makefile for the compilation and deployment needs of my plugin. This means, every time our GUI and resources change, we need to recompile them using PyQt4. To do this we need to use the ' pyuic.py' and ' pyrcc4' tools of the PyQt4 on our Qt files ( *.ui and *.qrc files). The problem is, we need to compile our Qt files into the formats that can be understood by QGIS. But for now, I want to focus on the deployment aspect of it, which can be frustrating if done manually. Development of a Python plugin for QGIS is a fun experience and I plan to share my relevant adventures in a future post.