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 [2011/12/13 13:16] dickkniep |
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 3: | Line 3: | ||
| To make development of pyhoca possible, you need several tools. | To make development of pyhoca possible, you need several tools. | ||
| - | Pyhoca is written in python and the gui is written in wxpython. | + | Pyhoca is written in python and the gui is written in wxpython. |
| + | |||
| + | ===== 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 | ||
| - | * git clone git:// | + | * %%git clone git:// |
| - | * git clone git:// | + | * %%git clone git:// |
| - | * git clone git:// | + | * %%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.git contains quite an amount of binary data/files. Its cloning can take a while. | ||
| + | |||
| + | ===== Test-Running PyHoca ===== | ||
| + | |||
| + | ==== Adding Python to $PATH ==== | ||
| + | |||
| + | After having all installers download and installs and the Git working copies are in place, make sure the Git Bash has the python shell in its $PATH: | ||
| + | |||
| + | <code bash> | ||
| + | # presuming that you installed Python 2.7 to C: | ||
| + | PATH=$PATH:/c/ | ||
| + | </code> | ||
| + | |||
| + | ==== 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/building PyHoca-GUI, you may want to choose the version of PyHoca-GUI to use, use '' | ||
| + | |||
| + | <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 && | ||
| + | $ 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 | ||
| + | </ | ||
| - | This can best be done in the MingW32 shell that comes with the Git package. Note that pyhoca-contrib contains all complete packages and therefor is about 500 MB. | ||