Version 7 (modified by robert-whitley, 13 years ago) (diff)

Build Instructions for Windows

  • SansView? 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.

Install Python

  • 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
python --version
  • If the correct version isn't displayed then it's probably not set as an environmental variable. These can be changed in My Computer ‣ Properties ‣ Advanced ‣ Environment Variables The directory where python is located should be entered under 'PATH' and 'PYTHONPATH'.
  • If this doesn't work then a temporary fix is setting the path on the command line. An example of this is below.
    PATH c:/Python25; %PATH%
    

Install wxPython 2.8

Install other external packages

  • 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).

— Example 1 (Using correct version of Python)

c:\>python --version
Python 2.6

c:\>cd C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0

C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0>python setup.py install

— Example 2 (Forcing to install using the correct version of Python)

c:\>cd C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0

C:\Users\rqh12525\Desktop\Periodic table\periodictable-1.3.0>c:/Python26/python.exe setup.py install
  • There are several external packages that need to be installed.

— matplotlib-0.99.x https://sourceforge.net/projects/matplotlib/files/

— numpy-1.4.x https://sourceforge.net/projects/numpy/files/

— scipy-0.7.x https://sourceforge.net/projects/scipy/files/

— lxml-2.2 http://pypi.python.org/pypi/lxml/

— pyparsing https://sourceforge.net/projects/pyparsing/files/

— periodictable-1.3 http://pypi.python.org/pypi/periodictable#downloads

— setuptools http://pypi.python.org/pypi/setuptools#downloads

— comtypes https://sourceforge.net/projects/comtypes/files/

— pywin32 https://sourceforge.net/projects/pywin32/files/

— PIL(optional) http://www.pythonware.com/products/pil/

— Check the release notes to see if any more are needed.

Getting the source code

  • The easiest way of getting the source code is using subversion. You can get subversion here if you haven't already got it.
  • Using subversion copy this onto the command line. It will allow you to checkout the code and put it into the directory 'c:/sansviewproject'
    c:\>svn co https://sansviewproject.svn.sourceforge.net/svnroot/sansviewproject sansviewproject