Changes between Version 34 and Version 35 of Win32Build


Ignore:
Timestamp:
Jun 20, 2016 2:01:14 PM (8 years ago)
Author:
smk78
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Win32Build

    v34 v35  
    100100}}} 
    101101 
    102 == Set up IDE (Optional) == 
    103 - This section is optional, if you want to use an IDE like [http://www.eclipse.org Eclipse] and not a text editor like [http://www.vim.org Vim] then carry on reading. 
    104  
    105 - Read the instruction on how I did it below or follow this simple [https://confluence.aps.anl.gov/download/attachments/2523138/PyDev.pdf?version=1&modificationDate=1305235496000 guide] by Pete Jemian. 
    106  
    107 - This section will explain how to set up !SasView in Eclipse because it's the most commonly used open-source IDE. Get a copy and install it on your computer. [http://www.eclipse.org/downloads/] 
    108  
    109 - Now you will need to download the !PyDev plugin for Eclipse in order to get the python to work. [https://sourceforge.net/projects/pydev/files/] 
    110  
    111 - Once these are installed load up Eclipse. It will ask for a workspace directory to store the project files in, you can choose anywhere. 
    112  
    113 - Make sure that you are in !PyDev mode. You can see this in the top right corner of Eclipse. 
    114  
    115 - Setup a new project. ''File ‣ New ‣ !PyDev Project''. Name it something sensible like SasView Project. Leave all options as default but make sure the option "Create 'src' folder and add it to the PYTHONPATH" is selected. 
    116  
    117 - Then, you have to go to ''File ‣ Import'', and choose the File System option: 
    118  
    119 [[Image(http://1.bp.blogspot.com/_SDci0Pf3tzU/SVokhZBDNfI/AAAAAAAAEbg/_2sVRjA-PCM/s400/Import+Eclipse.jpg)]] 
    120  
    121 - Select the directory where your files are located and the input Folder, and click finish. 
    122  
    123 - Add the directory where the external packages are stored to the !PyDev settings. ''Window ‣ Preferences ‣ !PyDev ‣ Interpreter-Python ‣ Libraries ‣ New Folder''. 
    124  
    125 - If you still have errors with wxPython then remove your interpreter and add it again. After a restart of Eclipse the errors should have disappeared. 
    126  
    127 - Finally right click on the project, properties and then change the !PyDev PYTHONPATH so that it contains the build directory. This is needed for debugging purposes. 
    128  
    129 - Open sansview.py and hit the run button. 
    130  
    131 [[Image(http://i.imgur.com/DTu5A.png, 800px)]] 
    132  
    133102- Done!