-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (39 loc) · 1.57 KB
/
Copy pathsetup.py
File metadata and controls
46 lines (39 loc) · 1.57 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
from numpy.distutils.core import Extension
# from setuptools import find_packages
libraries = ['gomp', 'lapack'] # + lapack_opt_info['libraries']
# library_dirs = ['/usr/lib', '/usr/local/lib'] # lapack_opt_info['library_dirs']
fortran_module = Extension(
name='fortran_module',
sources=['./fem/fortran_module.f90', './fem/fortran_module.pyf'],
libraries=libraries,
# library_dirs=library_dirs,
extra_f90_compile_args=['-fopenmp', '-lgomp'])
# gnu (gcc, g++, g77, gfortran): -fopenmp
# intel (icc, icpc, ifort): -qopenmp
# PGI (pgcc, pgCC, pgf77, pgf90): -mp
# Clang (clang, clang++): -fopenmp
# etc... https://computing.llnl.gov/tutorials/openMP/
with open('README.rst', 'r') as f:
readme = f.read()
with open('version', 'r') as f:
version = f.read()
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(
name='fem',
version=version,
description='Free Energy Minimization',
long_description=readme,
author='Joseph P. McKenna',
author_email='joepatmckenna@gmail.com',
url='http://nihcompmed.github.io/fem',
download_url='https://pypi.org/project/fem',
packages=['fem', 'fem.discrete', 'fem.continuous'],
# packages=find_packages(),
ext_modules=[fortran_module],
classifiers=("Programming Language :: Python :: 2",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"),
license='MIT',
keywords=['inference', 'statistics', 'machine learning'])
# data_files=[])