1 | import os |
---|
2 | from setuptools import setup,find_packages |
---|
3 | |
---|
4 | if os.name == 'nt': |
---|
5 | # Create the model .so's on windows |
---|
6 | os.system("python gen_so.py") |
---|
7 | |
---|
8 | packages = find_packages(exclude=['contrib', 'docs', 'tests*']) |
---|
9 | package_data = { |
---|
10 | 'sasmodels.models': ['*.c','lib/*.c'], |
---|
11 | 'sasmodels': ['*.c'], |
---|
12 | 'models': ['*.so'], |
---|
13 | } |
---|
14 | required = [] |
---|
15 | |
---|
16 | setup( |
---|
17 | name="sasmodels", |
---|
18 | version = "1.0.0a", |
---|
19 | description = "sasmodels package", |
---|
20 | long_description=open('README.md').read(), |
---|
21 | author = "SasView Collaboration", |
---|
22 | author_email = "management@sasview.org", |
---|
23 | url = "http://www.sasview.org", |
---|
24 | keywords = "small-angle x-ray and neutron scattering analysis", |
---|
25 | download_url = "https://github.com/SasView/sasmodels", |
---|
26 | classifiers=[ |
---|
27 | 'Development Status :: 4 - Beta', |
---|
28 | 'Environment :: Console', |
---|
29 | 'Intended Audience :: Science/Research', |
---|
30 | 'License :: Public Domain', |
---|
31 | 'Operating System :: OS Independent', |
---|
32 | 'Programming Language :: Python', |
---|
33 | 'Topic :: Scientific/Engineering', |
---|
34 | 'Topic :: Scientific/Engineering :: Chemistry', |
---|
35 | 'Topic :: Scientific/Engineering :: Physics', |
---|
36 | ], |
---|
37 | packages=packages, |
---|
38 | package_data=package_data, |
---|
39 | install_requires = required, |
---|
40 | extras_require = { |
---|
41 | 'OpenCL': ["pyopencl"], |
---|
42 | 'Bumps': ["bumps"], |
---|
43 | } |
---|
44 | |
---|
45 | ) |
---|