-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup_susan_dev.py
More file actions
111 lines (84 loc) · 3.4 KB
/
setup_susan_dev.py
File metadata and controls
111 lines (84 loc) · 3.4 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
### for Python 3 compatibility
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
#from __future__ import unicode_literals
'''
SASSIE Copyright (C) 2011-2016 Joseph E. Curtis
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it under certain
conditions; see http://www.gnu.org/licenses/gpl-3.0.html for details.
'''
import os,sys
from distutils.core import setup
from distutils import sysconfig
from numpy.distutils.core import Extension, setup
#
# SETUP
#
# 12/01/2009 -- initial coding : jc
# 11/22/2014 -- adapted for 2.0 : jc
# 07/21/2016 -- adapted for 2.0 git branch : jc
#
#LC 1 2 3 4 5 6 7
#LC4567890123456789012345678901234567890123456789012345678901234567890123456789
# * **
'''
setup.py is the script to install and/or update sassie.
installation: use the installer.py script (which calls this script)
update: using the python version that was used to install python type:
> sudo python setup.py build
> sudo python setup.py install
'''
### begin user edit ###
### begin user edit ###
### begin user edit ###
all_packages = ['sassie', 'sassie.util',
'sassie.interface', 'sassie.interface.data_interpolation', 'sassie.interface.multi_component_analysis',
'sassie.tools','sassie.tools.data_interpolation',
'sassie.contrast', 'sassie.contrast.multi_component_analysis',
]
### end user edit ###
### end user edit ###
### end user edit ###
# Third-party modules - we depend on numpy for everything
import numpy
# Obtain the numpy include directory. This logic works across numpy versions.
try:
numpy_include = numpy.get_include()
except AttributeError:
numpy_include = numpy.get_numpy_include()
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# for compatibility with from __future__ import unicode_literals
python_2_flag = True
if int(sys.version[0]) > 2:
python_2_flag = False
if python_2_flag:
all_packages = [x.encode('UTF8') for x in all_packages]
# the next line does NOT work
#all_data_files = [x.encode('UTF8') for x in all_data_files]
setup(name='sassie',
version='2.00_rev_0',
author='Joseph E. Curtis',
author_email='joseph.curtis@nist.gov',
license='GPL 3',
url='www.smallangles.net/sassie',
platforms='Linux, Mac OS X',
description=("A suite of programs to generate atomistic models of biological systems, calculate scattering observables, and compare results to experimental data"),
long_description=read('README.md'),
classifiers=["Development Status :: 2.0 Pre-Alpha",
"License :: OSI Approved :: GNU Public License 3",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: Linux :: MacOS :: MacOS X",
"Programming Language :: Python :: 2 :: Only",
"Topic :: Scientific/Engineering :: Chemistry :: Physics"],
package_dir={'sassie':os.path.join('src','sassie')},
packages = all_packages,
package_data = {'':['sascalc_api.so']},
)
# this data type must be parsed correctly if using string literals !!! ouch
# and it needs to be in setup() above
# data_files = all_data_files