Changeset 0f282a5 in sasview
- Timestamp:
- Aug 10, 2011 6:56:49 PM (13 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:
- bcfc969
- Parents:
- 0cd16c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/setup.py
r0a51f0d8 r0f282a5 11 11 """ 12 12 import sys 13 if len(sys.argv) == 1: 14 sys.argv.append('install') 13 15 import os 14 16 … … 48 50 class_list = ModelFactory().getAllModels() 49 51 for name in class_list: 50 odb = open("s ans/models/pyre/%s.odb" % name, 'w')52 odb = open("src/sans/models/pyre/%s.odb" % name, 'w') 51 53 odb.write(createODBcontent(name)) 52 54 odb.close() 53 print "s ans/models/pyre/%s.odb created" % name55 print "src/sans/models/pyre/%s.odb created" % name 54 56 55 57 # … … 92 94 "winFuncs.c"] 93 95 IGNORED_EXTENSIONS = [".h", ".txt", ".def", ".mm", ".hh", ".py"] 96 EXTENSIONS = [".c", ".cpp"] 94 97 95 98 def append_file(file_list, dir_path): … … 100 103 if os.path.isfile(os.path.join(dir_path, f)): 101 104 _, ext = os.path.splitext(f) 102 if ext not in IGNORED_EXTENSIONS and f not in IGNORED_FILES:105 if ext.lower() in EXTENSIONS and f not in IGNORED_FILES: 103 106 file_list.append(os.path.join(dir_path, f)) 104 107 elif os.path.isdir(os.path.join(dir_path, f)) and \ … … 108 111 if os.path.isfile(os.path.join(sub_dir, new_f)): 109 112 _, ext = os.path.splitext(new_f) 110 if ext not in IGNORED_EXTENSIONS and\113 if ext.lower() in EXTENSIONS and\ 111 114 new_f not in IGNORED_FILES: 112 115 file_list.append(os.path.join(sub_dir, new_f))
Note: See TracChangeset
for help on using the changeset viewer.