User Tools

Site Tools


wiki:development:build-howto-mswin:pyhoca-gui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:development:build-howto-mswin:pyhoca-gui [2013/04/20 22:10]
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       http://www.python.org   * python 2.7       http://www.python.org
-  * tortoisegit      http://msysgit.github.io/+  * Msysgit          http://msysgit.github.io/
   * easyinstall      http://pypi.python.org/pypi/setuptools#files   * easyinstall      http://pypi.python.org/pypi/setuptools#files
   * putty            http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html   * putty            http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
 +  * Unicode NSIS     http://www.scratchpaper.com/
 +  * Notepad2         http://www.flos-freeware.ch/notepad2.html (the editor we recommend for editing python files)
  
 The follow libraries are used The follow libraries are used
-  * wxpython 2.    http://www.wxpython.org+  * wxpython 3.    http://www.wxpython.org
   * greenlet         http://www.lfd.uci.edu/~gohlke/pythonlibs   * greenlet         http://www.lfd.uci.edu/~gohlke/pythonlibs
-  * gevent           [[http://code.google.com/p/gevent/downloads/list?can=1&q=&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount|http://code.google.com/p/gevent/downloads/list]]+  * gevent           http://www.lfd.uci.edu/~gohlke/pythonlibs
   * gmpy             http://www.lfd.uci.edu/~gohlke/pythonlibs   * gmpy             http://www.lfd.uci.edu/~gohlke/pythonlibs
-  * pycrypto         http://www.voidspace.org.uk/python/modules.shtml#pycrypto+  * pycrypto         http://blog.tkbe.org/archive/pre-compiled-binaries-for-pycrypto-2-6-1-py27-on-win7/
   * win32api         http://sourceforge.net/projects/pywin32/files/pywin32/   * win32api         http://sourceforge.net/projects/pywin32/files/pywin32/
-  * paramiko         c:\Python27\Scripts\easy_install paramiko +  * paramiko         c:\Python27\Scripts\easy_install --always-unzip paramiko 
-  * wmi              c:\Python27\Scripts\easy_install wmi+  * wmi              c:\Python27\Scripts\easy_install --always-unzip wmi 
 +  * python-requests  c:\Python27\Scripts\easy_install --always-unzip requests  
  
-(easy install should be executed from the windows commandline!)+<note>gevent 1.0rc3 is currently specified because is is the last gevent release with a windows installer.</note> 
 + 
 +PyHoca-GUI uses one of the below freezers (i.e. tools to generate a pyhoca-gui.exe plus programme/data folder): 
 + 
 +  * bbfreeze (default) c:\Python27\Scripts\easy_install --always-unzip bbfreeze 
 +  * py2exe             http://sourceforge.net/projects/py2exe/ 
 + 
 +<note>easy install should be executed from the windows commandline!</note> 
 + 
 +<note important>There is an issue with MediaWiki and how double dashes are rendered. For now, do not copy and paste the arguments for paramiko and wmi. Type them manually. You need 2 dashes before "always" and 1 dash before "unzip"</note> 
 +==== Obtaining an X-Server for Windows (optional====
  
 One of the following X-servers (actually VcXsrv is your way to go here!!! However, its core files are included in pyhoca-contrib.git, see below).  One of the following X-servers (actually VcXsrv is your way to go here!!! However, its core files are included in pyhoca-contrib.git, see below). 
Line 27: Line 44:
   * xming            http://sourceforge.net/projects/xming/files/latest/download    * xming            http://sourceforge.net/projects/xming/files/latest/download 
   * cygwin/        http://www.cygwin.com/setup.exe   * cygwin/        http://www.cygwin.com/setup.exe
 +
 +==== 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://code.x2go.org/pyhoca-contrib.git%%   * %%git clone git://code.x2go.org/pyhoca-contrib.git%%
  
-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.+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:\Python27 
 +PATH=$PATH:/c/Python27 
 +</code> 
 + 
 +==== Installing Python X2Go ==== 
 + 
 +Then make sure that Python X2Go is properly installed in a non-egg'ish way: 
 + 
 +<code bash> 
 +$ cd python-x2go && python setup.py install_lib && python setup.py install && cd - 
 +</code> 
 + 
 +If you want to install a special version of Python X2Go, use '''git checkout'' to get a specific version: 
 + 
 +<code bash> 
 +$ cd python-x2go && git checkout <the-version-you-want> && cd - 
 +</code> 
 + 
 +A list of available versions can be listed with ''git tag'' executed in the ''python-x2go'' directory. 
 + 
 +==== Choosing the PyHoca-GUI Version ==== 
 + 
 +Before testing/building PyHoca-GUI, you may want to choose the version of PyHoca-GUI to use, use ''git checkout'' to get a specific version: 
 + 
 +<code bash> 
 +$ cd pyhoca-gui && git checkout <the-version-you-want> && cd - 
 +</code> 
 + 
 +A list of available versions can be listed with ''git tag'' executed in the ''pyhoca-gui'' directory. 
 + 
 +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 - 
 +</code> 
 + 
 + 
 +==== Launching PyHoca-GUI from the Cmdline ==== 
 + 
 +A test launch of PyHoca-GUI can now be done with this command: 
 + 
 +<code bash> 
 +$ cd pyhoca-gui 
 +$ ./pyhoca-gui --start-xserver --lang=<your-lang-shortcut> 
 +</code> 
 + 
 +(... where <your-lang-shortcut> can be de, nl, da, etc.). If the ''--lang'' parameter is omitted, the application will run in English. 
 + 
 +===== 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 
 +</code> 
  
wiki/development/build-howto-mswin/pyhoca-gui.1366495846.txt.gz · Last modified: 2013/04/20 22:10 by sunweaver