Changeset 3d24489 in sasview
- Timestamp:
- Aug 28, 2013 3:38:20 PM (11 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:
- 06148e8
- Parents:
- a61b4b9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
rb8a8e4e r3d24489 108 108 109 109 # sans.invariant 110 #package_dir["sans.invariant"] = "sansinvariant/src/sans/invariant" 111 #packages.extend(["sans.invariant"])110 package_dir["sans.invariant"] = os.path.join("src", "sans", "invariant") 111 packages.extend(["sans.invariant"]) 112 112 113 113 # sans.guiframe 114 #guiframe_path = os.path.join("sansguiframe", "src", "sans", "guiframe") 115 #package_dir["sans.guiframe"] = guiframe_path 116 #package_dir["sans.guiframe.local_perspectives"] = os.path.join(guiframe_path, 117 # "local_perspectives") 118 #package_data["sans.guiframe"] = ['images/*', 'media/*'] 119 #packages.extend(["sans.guiframe", "sans.guiframe.local_perspectives"]) 114 guiframe_path = os.path.join("src", "sans", "guiframe") 115 package_dir["sans.guiframe"] = guiframe_path 116 package_dir["sans.guiframe.local_perspectives"] = os.path.join(os.path.join(guiframe_path, "local_perspectives")) 117 package_data["sans.guiframe"] = ['images/*', 'media/*'] 118 packages.extend(["sans.guiframe", "sans.guiframe.local_perspectives"]) 120 119 # build local plugin 121 #for dir in os.listdir(os.path.join(guiframe_path, "local_perspectives")): 122 # if dir not in ['.svn','__init__.py', '__init__.pyc']: 123 # package_name = "sans.guiframe.local_perspectives." + dir 124 # packages.append(package_name) 125 # package_dir[package_name] = os.path.join(guiframe_path, 126 # "local_perspectives", dir) 120 for dir in os.listdir(os.path.join(guiframe_path, "local_perspectives")): 121 if dir not in ['.svn','__init__.py', '__init__.pyc']: 122 package_name = "sans.guiframe.local_perspectives." + dir 123 packages.append(package_name) 124 package_dir[package_name] = os.path.join(guiframe_path, "local_perspectives", dir) 127 125 128 126 # sans.dataloader 129 #package_dir["sans.dataloader"] = os.path.join("sansdataloader", 130 # "src", "sans", "dataloader") 131 #package_data["sans.dataloader.readers"] = ['defaults.xml'] 132 #packages.extend(["sans.dataloader","sans.dataloader.readers"]) 127 package_dir["sans.dataloader"] = os.path.join("src", "sans", "dataloader") 128 package_data["sans.dataloader.readers"] = ['defaults.xml'] 129 packages.extend(["sans.dataloader","sans.dataloader.readers"]) 133 130 134 131 # sans.calculator 135 #package_dir["sans.calculator"] = "sanscalculator/src/sans/calculator" 136 #packages.extend(["sans.calculator"])132 package_dir["sans.calculator"] =os.path.join("src", "sans", "calculator") 133 packages.extend(["sans.calculator"]) 137 134 138 135 # sans.pr 139 136 numpy_incl_path = os.path.join(NUMPY_INC, "numpy") 140 137 srcdir = os.path.join("src", "sans", "pr", "c_extensions") 141 142 143 144 #package_dir["sans.pr.core"] = srcdir 145 #package_dir["sans.pr"] = os.path.join("pr_inversion", "src","sans", "pr") 146 #packages.extend(["sans.pr","sans.pr.core"]) 138 package_dir["sans.pr.core"] = srcdir 139 package_dir["sans.pr"] = os.path.join("src","sans", "pr") 140 packages.extend(["sans.pr","sans.pr.core"]) 147 141 ext_modules.append( Extension("sans.pr.core.pr_inversion", 148 sources = [ 142 sources = [os.path.join(srcdir, "Cinvertor.c"), 149 143 os.path.join(srcdir, "invertor.c"), 150 144 ], … … 153 147 154 148 # sans.fit (park integration) 155 #package_dir["sans.fit"] = "park_integration/src/sans/fit" 156 #packages.append("sans.fit") 157 158 # inversion view 159 #package_dir["sans.perspectives"] = "inversionview/src/sans/perspectives" 160 #package_dir["sans.perspectives.pr"] = "inversionview/src/sans/perspectives/pr" 161 #packages.extend(["sans.perspectives","sans.perspectives.pr"]) 162 #package_data["sans.perspectives.pr"] = ['images/*'] 163 164 # Invariant view 165 #package_dir["sans.perspectives"] = os.path.join("invariantview", "src", 166 # "sans", "perspectives") 167 #package_dir["sans.perspectives.invariant"] = os.path.join("invariantview", 168 # "src", "sans", "perspectives", "invariant") 169 170 #package_data['sans.perspectives.invariant'] = [os.path.join("media",'*')] 171 #packages.extend(["sans.perspectives","sans.perspectives.invariant"]) 172 173 # Fitting view 174 #fitting_path = os.path.join("fittingview", "src", "sans", 175 # "perspectives", "fitting") 176 #package_dir["sans.perspectives"] = os.path.join("fittingview", 177 # "src", "sans", "perspectives"), 178 #package_dir["sans.perspectives.fitting"] = fitting_path 179 #package_dir["sans.perspectives.fitting.plugin_models"] = \ 180 # os.path.join(fitting_path, "plugin_models") 149 package_dir["sans.fit"] = os.path.join("src", "sans", "fit") 150 packages.append("sans.fit") 151 152 # Perspectives 153 package_dir["sans.perspectives"] = os.path.join("src", "sans", "perspectives") 154 package_dir["sans.perspectives.pr"] = os.path.join("src", "sans", "perspectives", "pr") 155 packages.extend(["sans.perspectives","sans.perspectives.pr"]) 156 package_data["sans.perspectives.pr"] = ['images/*'] 157 158 package_dir["sans.perspectives.invariant"] = os.path.join("src", "sans", "perspectives", "invariant") 159 packages.extend(["sans.perspectives.invariant"]) 160 package_data['sans.perspectives.invariant'] = [os.path.join("media",'*')] 161 162 package_dir["sans.perspectives.fitting"] = os.path.join("src", "sans", "perspectives", "fitting") 163 package_dir["sans.perspectives.fitting.plugin_models"] = os.path.join("src", "sans", "perspectives", "fitting", "plugin_models") 164 packages.extend(["sans.perspectives.fitting", 165 "sans.perspectives.fitting.plugin_models"]) 181 166 package_data['sans.perspectives.fitting'] = ['media/*','plugin_models/*'] 182 #packages.extend(["sans.perspectives", "sans.perspectives.fitting", 183 # "sans.perspectives.fitting.plugin_models"]) 184 185 # Calculator view 186 #package_dir["sans.perspectives"] = "calculatorview/src/sans/perspectives" 187 #package_dir["sans.perspectives.calculator"] = os.path.join("calculatorview", 188 # "src", "sans", "perspectives", "calculator") 189 #package_data['sans.perspectives.calculator'] = ['images/*', 'media/*'] 190 #packages.extend(["sans.perspectives", "sans.perspectives.calculator"]) 191 167 168 package_dir["sans.perspectives.calculator"] = os.path.join("src", "sans", "perspectives", "calculator") 169 packages.extend(["sans.perspectives", "sans.perspectives.calculator"]) 170 package_data['sans.perspectives.calculator'] = ['images/*', 'media/*'] 171 192 172 # Data util 193 173 package_dir["data_util"] = os.path.join("src", "sansutil") … … 229 209 os.makedirs(wrapper_dir) 230 210 sys.path.append(os.path.join("src", "sans", "models", "src", "python_wrapper")) 231 #from wrapping import generate_wrappers232 #generate_wrappers(header_dir = includedir,233 #output_dir = model_dir,234 #c_wrapper_dir = wrapper_dir)211 from wrapping import generate_wrappers 212 generate_wrappers(header_dir = includedir, 213 output_dir = model_dir, 214 c_wrapper_dir = wrapper_dir) 235 215 236 216 IGNORED_FILES = [".svn"] -
src/sans/models/src/python_wrapper/wrapping.py
rb8a8e4e r3d24489 28 28 29 29 30 template_file = open(os.path.join("s ansmodels","src","c_models","c_models.cpp.template"),"r")31 write_file = open(os.path.join("s ansmodels","src","c_models","c_models.cpp"),"w")30 template_file = open(os.path.join("src", "sans", "models","src","c_models","c_models.cpp.template"),"r") 31 write_file = open(os.path.join("src", "sans", "models","src","c_models","c_models.cpp"),"w") 32 32 buf = template_file.read() 33 33 lines = buf.split('\n')
Note: See TracChangeset
for help on using the changeset viewer.