Changes between Version 5 and Version 6 of DevNotes/Obsolete/Development
- Timestamp:
- Apr 26, 2015 1:45:13 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevNotes/Obsolete/Development
v5 v6 30 30 doubt, contact your IT Support. 31 31 32 === Installing PyDev ===32 === Installing !PyDev === 33 33 Start Eclipse and open: File -> Switch Workspace -> Other... -> Select a workspace (the default is drive:\path\Eclipse_workspace) 34 34 35 Window -> Open Perspective -> Other -> PyDev36 37 If PyDev is not listed as a perspective it will be necessary to install it:35 Window -> Open Perspective -> Other -> !PyDev 36 37 If !PyDev is not listed as a perspective it will be necessary to install it: 38 38 39 39 Help -> Install New Software... and in the Work With: drop-down select the PyDev Update Site. Let the list of available software refresh. 40 40 41 Check the box next to PyDev and click Next. The plug-in will install.41 Check the box next to !PyDev and click Next. The plug-in will install. 42 42 43 43 If this doesn’t work: 44 44 45 Download the PyDev certificate from http://pydev.org/pydev_certificate.cer and install it (in Windows, just right-click and select Install certificate)46 47 Now get PyDev from http://sourceforge.net/projects/pydev/files/48 49 If you have Java 7 installed, you must install PyDev 3.4.1 or later.45 Download the !PyDev certificate from http://pydev.org/pydev_certificate.cer and install it (in Windows, just right-click and select Install certificate) 46 47 Now get !PyDev from http://sourceforge.net/projects/pydev/files/ 48 49 If you have Java 7 installed, you must install !PyDev 3.4.1 or later. 50 50 Extract the zip file to the Eclipse dropins folder and re-start Eclipse 51 51 … … 89 89 Check ‘Use existing repository location’ -> Select a SVN repository from the list shown -> Next 90 90 91 The SasView SVN repository is hosted by SourceForge at: https://svn.code.sf.net/p/sasview/code91 The SasView SVN repository is hosted by !SourceForge at: https://svn.code.sf.net/p/sasview/code 92 92 93 93 For commit access aspiring developers need (read-only checkout is public): … … 129 129 The official version of Python for building SasView is 2.7 130 130 131 Install NumPy, SciPy, and the additional Python site packages for buildingSasView131 Install !NumPy, !SciPy, and the additional Python site packages for building !SasView 132 132 133 133 NB: if you are using a Win64 version of Python ensure you also download and install a Win64 134 134 version of wxPython compatible with your Python 2.x installation! 135 135 136 Window -> Preferences -> PyDev -> Interpreter – Python136 Window -> Preferences -> !PyDev -> Interpreter – Python 137 137 138 138 If no Python interpreter is shown, click ‘New...’, enter a name for your Python installation and … … 141 141 Click OK 142 142 143 In the PyDev Package Explorer pane:143 In the !PyDev Package Explorer pane: 144 144 145 145 Navigate to the sansview folder within the trunk … … 147 147 Right-click on sansview.py -> Run As -> Python Run 148 148 149 If this fails with an error message in the console pane it means that there is no existing SasView build150 – which is what you want! If, on the other hand, SasView starts up, search for a sasview .egg file!149 If this fails with an error message in the console pane it means that there is no existing !SasView build 150 – which is what you want! If, on the other hand, !SasView starts up, search for a sasview .egg file! 151 151 152 152 Then repeat this test. … … 154 154 Locate setup.py in the top level of the trunk 155 155 156 Right-click on run.py -> Properties -> Run/Debug Settings156 Right-click on run.py -> Properties -> !Run/Debug Settings 157 157 158 158 IF no_launch_configuration shown: … … 168 168 Or highlight your_trunk_project setup.py and then choose Run -> Run As -> Python Run 169 169 170 SasView should build from your local trunk. If the build fails it will most likely be because a Python170 !SasView should build from your local trunk. If the build fails it will most likely be because a Python 171 171 package has not installed, in which case install it manually (eg, using easy_install) 172 172 … … 181 181 Right-click on setup.py -> Run As -> Python Run 182 182 183 SasView should build!184 185 The locally-built version of SasView should appear in183 !SasView should build! 184 185 The locally-built version of !SasView should appear in 186 186 drive:\path\Eclipse_workspace\workspace_location\dist as something similar to 187 187 sasview-3.0.0_r0-py2.7-win32.egg … … 193 193 Right-click on run.py -> Run As -> Python Run 194 194 195 SasView should start up!196 197 NB: This is running SasView from compiling and building the Python/C/C++, it is not installing198 SasView199 200 NB: If you run SasView at this point it may stop an Installer application from building, so if you want195 !SasView should start up! 196 197 NB: This is running !SasView from compiling and building the Python/C/C++, it is not installing 198 !SasView 199 200 NB: If you run !SasView at this point it may stop an Installer application from building, so if you want 201 201 an Installer application, create that first (see below)! 202 202 203 === Creating a SasView Installer Package ===203 === Creating a !SasView Installer Package === 204 204 NB: You would not normally need to do this because that is the function of the Build Server! 205 205 Navigate to the sansview folder within the trunk … … 207 207 Right-click on setup_exe.py -> Run As -> Python Run 208 208 209 This should create a file SasView.exe in the sansview\dist folder of the trunk209 This should create a file !SasView.exe in the sansview\dist folder of the trunk 210 210 211 211 Double-click on installer.iss to bring up the Inno Setup Compiler 212 212 213 Click the green ‘play’ button to build a SasView installer213 Click the green ‘play’ button to build a !SasView installer 214 214 215 215 This should create a file setupSasView.exe in the sansview\Output folder of the trunk … … 221 221 Right-click on the utest_test-name.py file -> Run As -> Python unit-test 222 222 223 NB: unit tests operate on the last built version of SasView, so if you have modified any modules or224 unit tests you must re-build SasView first!223 NB: unit tests operate on the last built version of !SasView, so if you have modified any modules or 224 unit tests you must re-build !SasView first! 225 225 226 226 The unit test your_trunk_project\test\utest_sansview.py executes all the unit tests … … 242 242 Add a comment to describe your changes 243 243 244 ==== To See/Compare Code Changes ====244 ==== To !See/Compare Code Changes ==== 245 245 Either: 246 246 … … 253 253 Login 254 254 255 Projects -> SasView -> Code255 Projects -> !SasView -> Code 256 256 257 257 NB: if you haven’t been coding for a while, right-click on the top level of the trunk and do Team -> Update … … 277 277 Note that a branch is not simply a sub-folder of trunk 278 278 279 The top-level of the SasView code repository contains:279 The top-level of the !SasView code repository contains: 280 280 Web:: the sasview.org web pages 281 281 Trunk:: the code in the current development build … … 290 290 To create a branch in Eclipse: 291 291 292 * Right-click on your_trunk_project -> Team -> Branch/Tag292 * Right-click on your_trunk_project -> Team -> !Branch/Tag 293 293 * Modify the URL shown by adding /branches/name_of_branch 294 294 * Click Next … … 300 300 301 301 To work with a different branch: 302 * In PyDev view, right-click on the top-level of the current trunk -> Team -> Switch to another303 * Branch/Tag/Revision...302 * In !PyDev view, right-click on the top-level of the current trunk -> Team -> Switch to another 303 * !Branch/Tag/Revision... 304 304 * Modify the URL shown to point to the appropriate branch 305 305 * Click OK