-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
50 lines (45 loc) · 1.68 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
"""
Setup script for distutils currently working with UNIX based systemes
"""
# setup.py
import distutils
import sys
import os
from distutils.core import setup, Extension
os.environ["CC"] = "clang"
os.environ["CXX"] = "clang"
is_64bits = sys.maxsize > 2**32
enable_openmp = False
if sys.platform == 'darwin':
if not is_64bits:
# Disable OpenMP
enable_openmp = False
else:
# Newer versions of Darwin don't support openmp
try:
darwin_ver = int(os.uname()[2].split('.')[0])
if darwin_ver >= 12:
enable_openmp = False
except:
print("PROBLEM determining Darwin version")
extensions = [Extension('_vbwSC', ["vbw_sc.i", "VBW_sc.cpp"],
swig_opts=["-c++"],
extra_compile_args= ["-fpic", "-fopenmp",
"-O3", "-std=c++11"],
#extra_link_args= ["-shared", " -fopenmp"],
libraries =[ "gsl", "gslcblas", "m", "python3.7m"]
)]
setup(name = "bioce",
version = "1.0",
description='Bayesian inference of conformational ensembles',
author='Wojtek, Potrzebowski, Jill Trewhella and Ingemar Andre',
author_email='wojciech.potrzebowski@esss.se',
url='https://www.andrelab.org',
ext_package='vbwSC',
ext_modules=extensions,
py_modules=['psis','psisloo','stan_models','stan_utility',
'statistics','variationalBayesian','fullBayesian',
'prepareBayesian', 'prepareChemicalShifts'],
package_data={'bioce': ['bioce.yml']},
include_package_data=True,
)