- Timestamp:
- Jun 28, 2016 5:10:33 PM (8 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 3aa2f3c
- Parents:
- 899e084 (diff), 5552396 (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
r785cc657 r899e084 11 11 12 12 # Manage version number ###################################### 13 import sasview 14 VERSION = sasview.__version__ 13 with open(os.path.join("src", "sas", "sasview", "__init__.py")) as fid: 14 for line in fid: 15 if line.startswith('__version__'): 16 VERSION = line.split('"')[1] 17 break 18 else: 19 raise ValueError("Could not find version in src/sas/sasview/__init__.py") 15 20 ############################################################## 16 21 … … 51 56 # file_path = os.path.join(f_path, f) 52 57 # os.remove(file_path) 53 if os.path.exists(SASVIEW_BUILD): 54 print "Removing existing build directory", SASVIEW_BUILD, "for a clean build" 55 shutil.rmtree(SASVIEW_BUILD) 58 59 if os.path.exists(SASVIEW_BUILD): 60 print "Removing existing build directory", SASVIEW_BUILD, "for a clean build" 61 shutil.rmtree(SASVIEW_BUILD) 56 62 57 63 # 'sys.maxsize' and 64bit: Not supported for python2.5 58 is_64bits = False 59 if sys.version_info >= (2, 6): 60 is_64bits = sys.maxsize > 2**32 61 64 is_64bits = sys.maxsize > 2**32 62 65 enable_openmp = False 63 66 … … 287 290 288 291 # SasView 289 package_dir["sas.sasview"] = "sasview"290 292 package_data['sas.sasview'] = ['images/*', 291 293 'media/*', … … 334 336 zip_safe = False, 335 337 entry_points = { 336 'console_scripts':[337 "sasview = sas.sasview.sasview:run",338 ]339 },340 cmdclass = {'build_ext': build_ext_subclass,341 'docs': BuildSphinxCommand,342 'disable_openmp': DisableOpenMPCommand}338 'console_scripts': ["sasview = sas.sasview.sasview:run_cli"] 339 }, 340 cmdclass = { 341 'build_ext': build_ext_subclass, 342 'docs': BuildSphinxCommand, 343 'disable_openmp': DisableOpenMPCommand, 344 } 343 345 )
Note: See TracChangeset
for help on using the changeset viewer.