Changeset b81cf5c in sasview
- Timestamp:
- Jun 14, 2009 8:59:31 PM (16 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 57acd41
- Parents:
- c405c69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/build_sansview.py
r138ac69 rb81cf5c 177 177 os.system("%s checkout -q svn://danse.us/sans/trunk/sansview" % SVN) 178 178 179 def prepare( ):179 def prepare(wipeout = False): 180 180 """ 181 181 Prepare the build 182 182 """ 183 183 # Remove existing libraries 184 from distutils.sysconfig import get_python_lib 185 libdir = get_python_lib() 186 old_dirs = [os.path.join(libdir, 'danse'), 187 os.path.join(libdir, 'data_util'), 188 os.path.join(libdir, 'DataLoader'), 189 os.path.join(libdir, 'park'), 190 os.path.join(libdir, 'sans'), 191 os.path.join(libdir, 'sans_extension'), 192 ] 193 for d in old_dirs: 194 if os.path.isdir(d): 195 shutil.rmtree(d) 196 184 if wipeout == True: 185 print "Deleting old modules" 186 from distutils.sysconfig import get_python_lib 187 libdir = get_python_lib() 188 old_dirs = [os.path.join(libdir, 'danse'), 189 os.path.join(libdir, 'data_util'), 190 os.path.join(libdir, 'DataLoader'), 191 os.path.join(libdir, 'park'), 192 os.path.join(libdir, 'sans'), 193 os.path.join(libdir, 'sans_extension'), 194 ] 195 for d in old_dirs: 196 if os.path.isdir(d): 197 shutil.rmtree(d) 198 197 199 # Create a fresh installation folder 198 200 if os.path.isdir(INSTALL_FOLDER): … … 212 214 Ask the user whether he wants to proceed. 213 215 """ 214 print "WARNING! n"216 print "WARNING!\n" 215 217 print "In order to build a clean version of SansView, this script" 216 218 print "deletes anything found under site-packages for the following" … … 222 224 print " - sans" 223 225 print " - sans_extension\n" 224 answer = raw_input(" Are you sure you want to proceed? [Y|N]")226 answer = raw_input("Do you want to delete those modules [Y] or continue with a dirty installation [N]? [Y|N]") 225 227 return answer.upper()=="Y" 226 228 227 229 if __name__ == "__main__": 228 230 print "Build script for SansView %s" % SANSVIEW 229 230 # Make sure the user really wants to proceed231 if not warning():232 print "Execution canceled"233 sys.exit()234 231 235 232 if len(sys.argv)==1: … … 261 258 else: 262 259 logging.info("Build script for SansView %s" % SANSVIEW) 260 263 261 # Prepare installation folder 264 prepare( )262 prepare(warning()) 265 263 266 264 # Check the command line argument
Note: See TracChangeset
for help on using the changeset viewer.