Changes between Version 27 and Version 28 of Win32Build


Ignore:
Timestamp:
Feb 22, 2015 9:25:18 AM (10 years ago)
Author:
butler
Comment:

fist edit to migrate from svn instructions to git instructions

Legend:

Unmodified
Added
Removed
Modified
  • Win32Build

    v27 v28  
    11= Build Instructions for Windows = 
    22 
    3 - !SasView works with wxPython where there is currently no 64-bit version. If you have a 64-bit computer then please download 32-bit versions of python, wxpython and all the other external packages.   
     3- !SasView is currently building on 32 bit.  However with the move to Wx3.0 it should be possible to build in 64 bit.  Make sure at least to download all 32 or all 64 bit packages.   
    44 
    55== Install Python == 
    6 - Install 32-bit python 2.6 from [http://www.python.org/download/releases/][[BR]] 
    7 ''in principle Python 2.5 or 2.7 should also work but 2.6 is the official version'' 
     6- Install python 2.7 from [http://www.python.org/download/releases/][[BR]] 
    87 
    98- If you have two or more versions of python then you will have to make sure you use the correct version of python when installing packages and running python. You can check this on the command terminal by entering 
     
    2019}}} 
    2120 
    22 == Install wxPython 2.8 == 
    23 - Get 32-bit wxPython 2.8 (not 2.9) from [http://www.wxpython.org/download.php#stable] 
     21== Install wxPython 3.0 == 
     22- Get wxPython 3.0 from [http://www.wxpython.org/download.php#stable] 
    2423 
    2524== Install other external packages == 
    2625- There are several external packages that need to be installed. A complete up to date list can be found [wiki:WinBuildDependencies here] 
    2726 
    28 - Some packages don't come in a friendly .exe file. To install these you will have to use the command terminal. There are two examples below of how to install. (The example installs periodictable using Python 2.6). 
     27- Some packages don't come in a friendly .exe file. To install these you will have to use the command terminal. There are two examples below of how to install. (The example installs periodictable using Python 2.7). 
    2928 
    3029 -- Example 1 (Using correct version of Python) 
    3130{{{ 
    3231c:\>python --version 
    33 Python 2.6 
     32Python 2.7 
    3433 
    3534c:\>cd C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0 
     
    4241c:\>cd C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0 
    4342 
    44 C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0>c:/Python26/python.exe setup.py install 
     43C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0>c:/Python27/python.exe setup.py install 
    4544}}} 
    4645 
    4746 
    4847== Get the source code == 
    49 - One of the ways of getting the source code is using subversion. You can get subversion [http://subversion.tigris.org/ here] if you haven't already got it. If you want to do it a harder way then you can download the source code [https://sourceforge.net/projects/sansviewproject/files/ here]. 
     48- To obtain the source code you need to have git running.  if you haven't already got it, it can be obtained from [https://github.com/msysgit/msysgit/releases/ github]. 
    5049 
    51 - Using subversion copy this onto the command line. It will allow you to checkout the code and put it into the directory 'c:/sasview' 
     50- Using git clone type the following onto the command line will allow you to checkout the code and put it into the directory 'c:/sasview' 
    5251{{{ 
    53 c:\>svn co https://svn.code.sf.net/p/sasview/code/trunk 
     52c:\>git clone https://github.com/SasView/sasview.git C:\sasview 
    5453}}} 
    5554 
    56 - An easier way to use subversion is by downloading [https://sourceforge.net/projects/tortoisesvn/files/ Tortoise SVN]. This is a GUI for subversion. 
     55- Alternatively one can install git with a GUI.  A good one can be obtained from [https://code.google.com/p/tortoisegit/ tortoise]. 
    5756 
    58 - Note: You may need to add proxy settings for Subversion to work. Instructions on how to do this are [https://docs.opends.org/wiki/page/ConfiguringSubversionToUseAProxyServer?version=2 here]. It can be achieved using Tortoise SVN a lot simpler by going to ''TortoiseSVN ‣ Settings ‣ Network''. 
    5957 
    6058== Build !SasView == 
    61 - Now that the files are downloaded it's time to build. Go to where you downloaded !SasView and look for the folder named 'trunk'. Inside this folder you should have a file called 'setup.py' which we shall use to build !SasView. Use the code below on the command line in order to build !SasView. 
     59- Now that the files are downloaded it's time to build. Go to where you downloaded !SasView and look for a file called 'run.py' which we shall use to build !SasView. Use the code below on the command line in order to build !SasView.  Note that run.py will run setup.py build as needed but will only compile all the C if there have been changes to the C code.  Setup.py docs should be run after !SasView has been built.  This will run Sphinx to run the documentation 
    6260 
    6361{{{ 
    64 c:\sasview\trunk>python setup.py build 
     62c:\sasview>python run.py 
     63C:\sasview>python setup.py docs 
    6564}}} 
    6665 
    67 - Note: You may get an error saying "Error: Python was built with Visual Studio 2003; extensions must be built with a compiler that can generate compatible binaries". To solve this issue we recommend using Cygwin and to compile with MinGW32. The best thing about this is that you don't have to actually use Cygwin. First go to the download page of MinGW and download the latest version. [https://sourceforge.net/projects/mingw/files/] (Making sure it's 32-bit compatible). Next make sure the PATH variable is set to the folder containing the MinGW32 GCC. (Usually found in 'C:\MinGW\bin'). Next enter the following into the command terminal. 
     66- Note: You may get an error saying "Error: Python was built with Visual Studio 2003; extensions must be built with a compiler that can generate compatible binaries". To solve this issue we recommend using Cygwin and to compile with MinGW32. The best thing about this is that you don't have to actually use Cygwin. First go to the download page of MinGW and download the latest version. [https://sourceforge.net/projects/mingw/files/] (Making sure it's 32-bit or 64 bit compatible depending on your setup). Next make sure the PATH variable is set to the folder containing the MinGW32 GCC. (Usually found in 'C:\MinGW\bin'). Next enter the following into the command terminal. 
    6867 
    6968{{{ 
    70 c:\sasview\trunk>python setup.py build -mingw32 
     69c:\sasview>python setup.py build -mingw32 
    7170}}} 
    7271