This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:development:build-howto-mswin:pyhoca-gui [2013/04/20 22:09] sunweaver |
wiki:development:build-howto-mswin:pyhoca-gui [2015/01/24 13:59] (current) mikedep333 [Downloading Software Packages] temporary link for pycrypto at version 2.6.1 |
||
---|---|---|---|
Line 4: | Line 4: | ||
Pyhoca is written in python and the gui is written in wxpython. Currently due to problems with the winrandom package, it is only possible to generate a 32 bit version of pyhoca. When installing, please keep the order given here | Pyhoca is written in python and the gui is written in wxpython. Currently due to problems with the winrandom package, it is only possible to generate a 32 bit version of pyhoca. When installing, please keep the order given here | ||
+ | |||
+ | ===== System Preparations ===== | ||
+ | |||
+ | ==== Downloading Software Packages ==== | ||
* python 2.7 | * python 2.7 | ||
- | * tortoisegit | + | * Msysgit |
* easyinstall | * easyinstall | ||
* putty http:// | * putty http:// | ||
+ | * Unicode NSIS | ||
+ | * Notepad2 | ||
The follow libraries are used | The follow libraries are used | ||
- | * wxpython | + | * wxpython |
* greenlet | * greenlet | ||
- | * gevent | + | * gevent |
* gmpy | * gmpy | ||
- | * pycrypto | + | * pycrypto |
* win32api | * win32api | ||
- | * paramiko | + | * paramiko |
- | * wmi c: | + | * wmi c: |
+ | * python-requests | ||
- | (easy install should be executed from the windows | + | < |
- | One of the following X-servers. | + | PyHoca-GUI uses one of the below freezers (i.e. tools to generate a pyhoca-gui.exe plus programme/ |
+ | |||
+ | * bbfreeze (default) c: | ||
+ | * py2exe | ||
+ | |||
+ | < | ||
+ | |||
+ | <note important> | ||
+ | ==== Obtaining an X-Server for Windows (optional) ==== | ||
+ | |||
+ | One of the following X-servers | ||
* vcxsrv | * vcxsrv | ||
* xming http:// | * xming http:// | ||
* cygwin/ | * cygwin/ | ||
+ | |||
+ | ==== Cloning the PyHoca related Git repositories ==== | ||
After installation download the current code base by starting the git-bash shell and type | After installation download the current code base by starting the git-bash shell and type | ||
Line 34: | Line 53: | ||
* %%git clone git:// | * %%git clone git:// | ||
- | This can best be done in the MingW32 shell that comes with the Git package. Note that pyhoca-contrib contains all complete packages | + | This can best be done in the MingW32 shell that comes with the Git package. Note that pyhoca-contrib.git contains |
+ | |||
+ | ===== Test-Running PyHoca ===== | ||
+ | |||
+ | ==== Adding Python to $PATH ==== | ||
+ | |||
+ | After having | ||
+ | |||
+ | <code bash> | ||
+ | # presuming that you installed Python 2.7 to C: | ||
+ | PATH=$PATH:/ | ||
+ | </ | ||
+ | |||
+ | ==== Installing Python X2Go ==== | ||
+ | |||
+ | Then make sure that Python X2Go is properly installed in a non-egg' | ||
+ | |||
+ | <code bash> | ||
+ | $ cd python-x2go && python setup.py install_lib && python setup.py install && cd - | ||
+ | </ | ||
+ | |||
+ | If you want to install a special version of Python X2Go, use ''' | ||
+ | |||
+ | <code bash> | ||
+ | $ cd python-x2go && git checkout < | ||
+ | </ | ||
+ | |||
+ | A list of available versions can be listed with '' | ||
+ | |||
+ | ==== Choosing the PyHoca-GUI Version ==== | ||
+ | |||
+ | Before testing/ | ||
+ | |||
+ | <code bash> | ||
+ | $ cd pyhoca-gui && git checkout < | ||
+ | </ | ||
+ | |||
+ | A list of available versions can be listed with '' | ||
+ | |||
+ | If you want to test/build bleeding edge code, build PyHoca-GUI from the master branch. | ||
+ | |||
+ | As the development of PyHoca-GUI is closely entangled with the development of Python X2Go, for bleeding edge code it is recommended to use the master branches of both projects. | ||
+ | |||
+ | <code bash> | ||
+ | $ cd python-x2go && git checkout master && cd - | ||
+ | $ cd python-x2go && python setup.py install_lib && python setup.py install && cd - | ||
+ | $ cd pyhoca-gui && git checkout master && cd - | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Launching PyHoca-GUI from the Cmdline ==== | ||
+ | |||
+ | A test launch of PyHoca-GUI can now be done with this command: | ||
+ | |||
+ | <code bash> | ||
+ | $ cd pyhoca-gui | ||
+ | $ ./ | ||
+ | </ | ||
+ | |||
+ | (... where < | ||
+ | |||
+ | ===== Building the Windows Installer Setup ===== | ||
+ | |||
+ | To build a MS Windows Installer (32-bit) of PyHoca-GUI, run the following command: | ||
+ | |||
+ | <code bash> | ||
+ | $ cd pyhoca-gui | ||
+ | $ python setup.py build_exe | ||
+ | </ | ||