Changeset 7621d5a in sasmodels
- Timestamp:
- Feb 24, 2015 11:35:16 AM (10 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:
- 84e01d2
- Parents:
- 664c8e7 (diff), c48d0c6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
rda32ec3 r040575f 1 from setuptools import setup,find_packages 2 3 packages = find_packages(exclude=['contrib', 'docs', 'tests*']) 4 package_data = { 5 'sasmodels.models': ['*.c'], 6 } 7 required = [] 8 9 setup( 10 name="sasmodels", 11 version = "1.0.0a", 12 description = "sasmodels package", 13 long_description=open('README.rst').read(), 14 author = "SasView Collaboration", 15 author_email = "management@sasview.org", 16 url = "http://www.sasview.org", 17 keywords = "small-angle x-ray and neutron scattering analysis", 18 download_url = "https://github.com/SasView/sasmodels", 19 classifiers=[ 20 'Development Status :: 4 - Beta', 21 'Environment :: Console', 22 'Intended Audience :: Science/Research', 23 'License :: Public Domain', 24 'Operating System :: OS Independent', 25 'Programming Language :: Python', 26 'Topic :: Scientific/Engineering', 27 'Topic :: Scientific/Engineering :: Chemistry', 28 'Topic :: Scientific/Engineering :: Physics', 29 ], 30 packages=packages, 31 package_data=package_data, 32 install_requires = required, 33 extras_require = { 34 'OpenCL': ["pyopencl"], 35 'Bumps': ["bumps"], 36 } 37 38 ) -
sasmodels/kernelcl.py
rf734e7d r664c8e7 30 30 try: 31 31 import pyopencl as cl 32 except ImportError,exc: 32 context = cl.create_some_context(interactive=False) 33 del context 34 except Exception,exc: 33 35 warnings.warn(str(exc)) 34 36 raise RuntimeError("OpenCL not available") 35 36 try:37 context = cl.create_some_context(interactive=False)38 del context39 except cl.RuntimeError, exc:40 warnings.warn(str(exc))41 raise RuntimeError("OpenCl not available")42 37 43 38 from pyopencl import mem_flags as mf
Note: See TracChangeset
for help on using the changeset viewer.