How to package OpenTeacher for Windows
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
- Milestone target:
- None
- Started by
- Milan Boers
- Completed by
- Milan Boers
Related branches
Related bugs
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=
-------
Then copy dialogs.py, errors.py, fileTypes.py, resources.py, words.py, the whole gui folder and the whole api folder to C:\Python27\
Then execute this line to start the compilation (on the commandline):
------
> setup.py py2exe --includes dialogs,
-------
The Windows binary files are now in ./dist.
To run the OpenTeacher exe you might need the Microsoft Visual C++ Redistributable Package.