forked from DOI-USGS/geobipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (56 loc) · 1.85 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
55
56
57
58
59
#!/usr/bin/env python
import sys
# Test Python's version
major, minor = sys.version_info[0:2]
if (major, minor) < (3, 5):
sys.stderr.write('\nPython 3.5 or later is needed to use this package\n')
sys.exit(1)
from setuptools import find_packages
try:
from numpy.distutils.core import setup
from numpy.distutils.core import Extension
except ImportError:
pass
def readme():
with open('README.rst') as f:
return f.read()
setup(name='geobipy',
packages=find_packages(),
scripts=[],
version=1.0,
description='Markov chain Monte Carlo inversion',
long_description=readme(),
url = 'https://github.com/usgs/geobipy',
classifiers=[
'Development Status :: 0 - Alpha',
'License :: OSI Approved :: CC0 and GPLv2',
'Programming Language :: Python :: 3.5',
'Topic :: Geophysical Inversion :: Bayesian :: McMC',
],
author='Leon Foks',
author_email='[email protected]',
install_requires=[
'numpy >= 1.11',
'scipy >= 0.18.1',
'h5py >= 2.6.0',
'sklearn',
'matplotlib',
'pyvtk',
'sphinx',
'progressbar2'
],
ext_modules=[Extension(name='geobipy.src.classes.forwardmodelling.fdemforward1d_fortran',
extra_f90_compile_args = ['-ffree-line-length-none','-O3', '-finline-functions', '-funroll-all-loops'],
extra_link_args = ['-ffree-line-length-none', '-O3', '-finline-functions', '-funroll-all-loops', '-g0'],
sources=['geobipy/src/classes/forwardmodelling/fdemforward1D_fortran/m_fdemforward1D.f90'],
),
],
entry_points = {
'console_scripts':[
'geobipySerial=geobipy:runSerial',
'geobipyParallel=geobipy:runParallel',
],
}
)
# url='http://www.')
# ext_modules=[])