source: sasmodels/setup.py @ baa79c2

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since baa79c2 was 32e3c9b, checked in by Paul Kienzle <pkienzle@…>, 8 years ago

dll version of magnetic sld

  • Property mode set to 100644
File size: 1.8 KB
Line 
1try:
2    from setuptools import setup
3except ImportError:
4    from distutils.core import setup
5
6def find_version(package):
7    """Read package version string from __init__.py"""
8    import os
9    with open(os.path.join(package, '__init__.py')) as fid:
10        for line in fid.readlines():
11            if line.startswith('__version__'):
12                line = line[:line.find('#')]  # strip comment, if any
13                version = line.split('=', 2)[1].strip()
14                if version[0] != version[-1] or version[0] not in "\"'":
15                    break
16                return version[1:-1]
17    raise RuntimeError("Could not read version from %s/__init__.py"%package)
18
19setup(
20    name='sasmodels',
21    version=find_version('sasmodels'),
22    description="sasmodels package",
23    long_description=open('README.rst').read(),
24    author="SasView Collaboration",
25    author_email="management@sasview.org",
26    url="http://www.sasview.org",
27    keywords="small-angle x-ray and neutron scattering analysis",
28    download_url="https://github.com/SasView/sasmodels",
29    classifiers=[
30        'Development Status :: 4 - Beta',
31        'Environment :: Console',
32        'Intended Audience :: Science/Research',
33        'License :: Public Domain',
34        'Operating System :: OS Independent',
35        'Programming Language :: Python',
36        'Programming Language :: C',
37        'Topic :: Scientific/Engineering',
38        'Topic :: Scientific/Engineering :: Chemistry',
39        'Topic :: Scientific/Engineering :: Physics',
40    ],
41    packages=[
42        'sasmodels',
43        'sasmodels.models',
44        'sasmodels.custom'
45    ],
46    package_data={
47        'sasmodels.models': ['*.c', 'lib/*.c'],
48        'sasmodels': ['*.c', '*.cl'],
49    },
50    install_requires = [
51    ],
52    extras_require = {
53        'OpenCL': ["pyopencl"],
54        'Bumps': ["bumps"],
55        'TinyCC': ["tinycc"],
56    },
57)
Note: See TracBrowser for help on using the repository browser.