Changeset 29e96f3 in sasview
- Timestamp:
- Dec 8, 2011 3:47:48 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:
- 8969521
- Parents:
- bdaa334
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r202c1ef r29e96f3 25 25 # TODO check for sans/__init__.py 26 26 27 # Enable OpenMP 28 extra_compile_args = [] 29 extra_link_args = [] 30 if not os.name=='nt': 31 extra_compile_args = ['-fopenmp'] 32 extra_link_args = ['-lgomp'] 33 27 34 # sans.invariant 28 35 package_dir["sans.invariant"] = "sansinvariant/src/sans/invariant" … … 61 68 packages.extend(["sans.pr","sans.pr.core"]) 62 69 ext_modules.append( Extension("sans.pr.core.pr_inversion", 63 sources = [ os.path.join(srcdir, "Cinvertor.c"), 64 os.path.join(srcdir, "invertor.c"), 65 ], 66 include_dirs=[numpy_incl_path] 67 ) ) 70 sources = [ os.path.join(srcdir, "Cinvertor.c"), 71 os.path.join(srcdir, "invertor.c"), 72 ], 73 include_dirs=[numpy_incl_path], 74 extra_compile_args=extra_compile_args, 75 extra_link_args=extra_link_args 76 ) ) 68 77 69 78 # sans.fit (park integration) … … 111 120 package_data["park"] = ['park-1.2.1/*.txt', 'park-1.2.1/park.epydoc'] 112 121 ext_modules.append( Extension("park._modeling", 113 sources = [ os.path.join("park-1.2.1", "park", "lib", "modeling.cc"), 114 os.path.join("park-1.2.1", "park", "lib", "resolution.c"), 115 ] ) ) 122 sources = [ os.path.join("park-1.2.1", "park", "lib", "modeling.cc"), 123 os.path.join("park-1.2.1", "park", "lib", "resolution.c"), 124 ], 125 extra_compile_args=extra_compile_args, 126 extra_link_args=extra_link_args 127 ) ) 116 128 117 129 # Sans models … … 182 194 ext_modules.extend( [ Extension("sans.models.sans_extension.c_models", 183 195 sources=model_sources, 184 include_dirs=[igordir, srcdir, c_model_dir, numpy_incl_path]), 196 include_dirs=[igordir, srcdir, c_model_dir, numpy_incl_path], 197 extra_compile_args=extra_compile_args, 198 extra_link_args=extra_link_args 199 ), 185 200 # Smearer extension 186 201 Extension("sans.models.sans_extension.smearer", 187 202 sources = smearer_sources, 188 include_dirs=[igordir, smear_dir, numpy_incl_path]), 203 include_dirs=[igordir, smear_dir, numpy_incl_path], 204 extra_compile_args=extra_compile_args, 205 extra_link_args=extra_link_args 206 ), 189 207 190 208 Extension("sans.models.sans_extension.smearer2d_helper", 191 209 sources = [os.path.join(smear_dir, 192 "smearer2d_helper_module.cpp"), 193 os.path.join(smear_dir, "smearer2d_helper.cpp"),], 194 include_dirs=[smear_dir,numpy_incl_path]) 210 "smearer2d_helper_module.cpp"), 211 os.path.join(smear_dir, "smearer2d_helper.cpp"),], 212 include_dirs=[smear_dir,numpy_incl_path], 213 extra_compile_args=extra_compile_args, 214 extra_link_args=extra_link_args 215 ) 195 216 ] ) 196 217
Note: See TracChangeset
for help on using the changeset viewer.