Changeset aab3d87 in sasmodels
- Timestamp:
- May 27, 2016 12:47:16 PM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 30f8863
- Parents:
- 197e41d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kerneldll.py
raa343d6 raab3d87 62 62 63 63 if os.name == 'nt': 64 ARCH = "amd64" if sys.maxint > 2**32 else "x86" # maxint=2**31-1 on 32 bit 64 65 # Windows compiler; check if TinyCC is available 65 66 try: … … 95 96 return CC + ["%s"%source, "-o", "%s"%output, "-lm"] 96 97 else: 98 ARCH = "" 97 99 # Generic unix compile 98 100 # On mac users will need the X code command line tools installed … … 142 144 143 145 # Hack to find precompiled dlls 144 path = joinpath(generate.DATA_PATH, '..', 'compiled_models', basename+'.so') 146 path = joinpath(generate.DATA_PATH, '..', 'compiled_models', 147 basename + ARCH + '.so') 145 148 if os.path.exists(path): 146 149 return path … … 176 179 dtype = generate.F64 # Force 64-bit dll 177 180 181 # File name for generated C code 178 182 if dtype == generate.F32: # 32-bit dll 179 183 tempfile_prefix = 'sas_' + model_info['name'] + '32_'
Note: See TracChangeset
for help on using the changeset viewer.