- Timestamp:
- Oct 24, 2017 2:44:26 AM (7 years ago)
- Branches:
- 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
- Children:
- fca1f50, d6b234b
- Parents:
- 16afe01 (diff), 5582b078 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r377ade1 rf4a1433 6 6 TODO: Add checks to see that all the dependencies are on the system 7 7 """ 8 from __future__ import print_function 8 9 9 10 import os … … 18 19 19 20 # Manage version number ###################################### 20 import sasview 21 22 VERSION = sasview.__version__ 21 with open(os.path.join("src", "sas", "sasview", "__init__.py")) as fid: 22 for line in fid: 23 if line.startswith('__version__'): 24 VERSION = line.split('"')[1] 25 break 26 else: 27 raise ValueError("Could not find version in src/sas/sasview/__init__.py") 23 28 ############################################################## 24 29 … … 42 47 SASVIEW_BUILD = os.path.join(CURRENT_SCRIPT_DIR, "build") 43 48 49 # TODO: build step should not be messing with existing installation!! 44 50 sas_dir = os.path.join(os.path.expanduser("~"), '.sasview') 45 51 if os.path.isdir(sas_dir): … … 59 65 # file_path = os.path.join(f_path, f) 60 66 # os.remove(file_path) 61 if os.path.exists(SASVIEW_BUILD): 62 print("Removing existing build directory", 63 SASVIEW_BUILD, "for a clean build") 64 shutil.rmtree(SASVIEW_BUILD) 67 68 69 # Optionally clean before build. 70 dont_clean = 'update' in sys.argv 71 if dont_clean: 72 sys.argv.remove('update') 73 elif os.path.exists(SASVIEW_BUILD): 74 print("Removing existing build directory", SASVIEW_BUILD, "for a clean build") 75 shutil.rmtree(SASVIEW_BUILD) 65 76 66 77 # 'sys.maxsize' and 64bit: Not supported for python2.5 67 is_64bits = False 68 if sys.version_info >= (2, 6): 69 is_64bits = sys.maxsize > 2**32 78 is_64bits = sys.maxsize > 2**32 70 79 71 80 enable_openmp = False 72 73 81 if sys.platform == 'darwin': 74 82 if not is_64bits: … … 225 233 package_dir["sas.sascalc.dataloader"] = os.path.join( 226 234 "src", "sas", "sascalc", "dataloader") 227 package_data["sas.sascalc.dataloader.readers"] = [ 228 'defaults.json', 'schema/*.xsd'] 235 package_data["sas.sascalc.dataloader.readers"] = ['schema/*.xsd'] 229 236 packages.extend(["sas.sascalc.dataloader", "sas.sascalc.dataloader.readers", 230 237 "sas.sascalc.dataloader.readers.schema"]) … … 426 433 427 434 # SasView 428 package_d ir["sas.sasview"] = "sasview"435 package_data['sas'] = ['logging.ini'] 429 436 package_data['sas.sasview'] = ['images/*', 430 437 'media/*', 431 'logging.ini',432 438 'test/*.txt', 433 439 'test/1d_data/*', … … 439 445 'test/other_files/*', 440 446 'test/save_states/*', 441 'test/sesans_data/*' 447 'test/sesans_data/*', 448 'test/upcoming_formats/*', 442 449 ] 443 450 packages.append("sas.sasview") 444 451 445 452 required = [ 446 'bumps>=0.7.5.9', 'periodictable>=1. 3.1', 'pyparsing<2.0.0',453 'bumps>=0.7.5.9', 'periodictable>=1.5.0', 'pyparsing<2.0.0', 447 454 448 455 # 'lxml>=2.2.2',
Note: See TracChangeset
for help on using the changeset viewer.