Changes between Version 27 and Version 28 of Win32Build
- Timestamp:
- Feb 22, 2015 9:25:18 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Win32Build
v27 v28 1 1 = Build Instructions for Windows = 2 2 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 externalpackages.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. 4 4 5 5 == 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]] 8 7 9 8 - 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 … … 20 19 }}} 21 20 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] 24 23 25 24 == Install other external packages == 26 25 - There are several external packages that need to be installed. A complete up to date list can be found [wiki:WinBuildDependencies here] 27 26 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). 29 28 30 29 -- Example 1 (Using correct version of Python) 31 30 {{{ 32 31 c:\>python --version 33 Python 2. 632 Python 2.7 34 33 35 34 c:\>cd C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0 … … 42 41 c:\>cd C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0 43 42 44 C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0>c:/Python2 6/python.exe setup.py install43 C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0>c:/Python27/python.exe setup.py install 45 44 }}} 46 45 47 46 48 47 == 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]. 50 49 51 - Using subversion copy this onto the command line. Itwill 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' 52 51 {{{ 53 c:\> svn co https://svn.code.sf.net/p/sasview/code/trunk52 c:\>git clone https://github.com/SasView/sasview.git C:\sasview 54 53 }}} 55 54 56 - A n 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]. 57 56 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''.59 57 60 58 == 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 62 60 63 61 {{{ 64 c:\sasview\trunk>python setup.py build 62 c:\sasview>python run.py 63 C:\sasview>python setup.py docs 65 64 }}} 66 65 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. 68 67 69 68 {{{ 70 c:\sasview \trunk>python setup.py build -mingw3269 c:\sasview>python setup.py build -mingw32 71 70 }}} 72 71