source: sasmodels/setup.py @ fac6657

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since fac6657 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
RevLine 
[e9d10a6]1try:
2    from setuptools import setup
3except ImportError:
4    from distutils.core import setup
[040575f]5
[948b8c1]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)
[040575f]18
19setup(
[948b8c1]20    name='sasmodels',
21    version=find_version('sasmodels'),
22    description="sasmodels package",
[3a161d0]23    long_description=open('README.rst').read(),
[948b8c1]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",
[040575f]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',
[948b8c1]36        'Programming Language :: C',
[040575f]37        'Topic :: Scientific/Engineering',
38        'Topic :: Scientific/Engineering :: Chemistry',
39        'Topic :: Scientific/Engineering :: Physics',
40    ],
[948b8c1]41    packages=[
42        'sasmodels',
43        'sasmodels.models',
44        'sasmodels.custom'
45    ],
46    package_data={
47        'sasmodels.models': ['*.c', 'lib/*.c'],
[32e3c9b]48        'sasmodels': ['*.c', '*.cl'],
[948b8c1]49    },
50    install_requires = [
51    ],
[040575f]52    extras_require = {
53        'OpenCL': ["pyopencl"],
54        'Bumps': ["bumps"],
[948b8c1]55        'TinyCC': ["tinycc"],
56    },
57)
Note: See TracBrowser for help on using the repository browser.