Changes in setup.py [785cc657:899e084] in sasview
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.