How to package OpenTeacher for Windows

Registered by Milan Boers

Instructions on how to package OpenTeacher for Microsoft Windows using py2exe.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Informational Informational
Milestone target:
None
Started by
Milan Boers
Completed by
Milan Boers

Related branches

Sprints

Whiteboard

Windows Packaging
 To packagage OpenTeacher for Windows you need the following things:
 1. Python 2.7 for Windows
 2. PyQt4
 3. Py2Exe
 4. The OpenTeacher source

 Add the following lines to the setup.py after "import subprocess":

-----------------------------------
 import py2exe

setup(windows=[{"script":"src/openteacher.py"}])
-----------------------------------

 Then copy dialogs.py, errors.py, fileTypes.py, resources.py, words.py, the whole gui folder and the whole api folder to C:\Python27\Lib\site-packages

 Then execute this line to start the compilation (on the commandline):

 -----------------------------------
> setup.py py2exe --includes dialogs,errors,fileTypes,resources,words,sip,PyQt4.QtGui,PyQt4.QtCore,gui.about,gui.icons_rc,gui.openteacher,gui.settings,gui.wrtsListChoice,gui.wrtsLogin,api.wrts
-----------------------------------

 The Windows binary files are now in ./dist.

 To run the OpenTeacher exe you might need the Microsoft Visual C++ Redistributable Package.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.