forked from bumps/bumps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·54 lines (46 loc) · 1.78 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
import sys
import os
#from distutils.core import Extension
from setuptools import setup, find_packages, Extension
#import fix_setuptools_chmod
sys.path.insert(0,os.path.dirname(__file__))
import bumps
from bumps.gui.resources import resources as gui_resources
packages = find_packages(exclude=['amqp_map','models'])
if len(sys.argv) == 1:
sys.argv.append('install')
def bumpsmodule():
sources = [os.path.join('bumps','lib',f)
for f in ("bumpsmodule.cc","methods.cc","convolve.c")]
module = Extension('bumps.bumpsmodule', sources=sources)
return module
#TODO: write a proper dependency checker for packages which cannot be
# installed by easy_install
#dependency_check('numpy>=1.0', 'scipy>=0.6', 'matplotlib>=1.0', 'wx>=2.8.9')
#print bumps.package_data()
dist = setup(
name = 'bumps',
version = bumps.__version__,
author='Paul Kienzle',
author_email='[email protected]',
url='http://www.reflectometry.org/danse/model1d.html',
description='Bayesian uncertainty modeling of parametric systems',
long_description=open('README.txt').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: Public Domain',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Physics',
],
packages = packages,
package_data = gui_resources.package_data(),
scripts = ['bin/bumps_workerd','bin/bumps'],
ext_modules = [bumpsmodule()],
install_requires = ['httplib2'],
)
# End of file