forked from vollib/lets_be_rational
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (44 loc) · 1.66 KB
/
setup.py
File metadata and controls
48 lines (44 loc) · 1.66 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
#!/usr/bin/env python
# encoding: utf-8
from setuptools import setup, Extension
cpp_module = Extension('lets_be_rational._LetsBeRational',
sources = [
'src/erf_cody.cpp',
'src/normaldistribution.cpp',
'src/rationalcubic.cpp',
'src/LetsBeRational.cpp',
'src/LetsBeRational.i'
],
depends=[
'src/importexport.h',
'src/normaldistribution.h',
'src/rationalcubic.h',
'src/version.h'
],
swig_opts=['-outdir', 'lets_be_rational'],
# extra_link_args=['-flat_namespace']
)
setup(
name='lets_be_rational',
version='1.0.9',
description='''
Peter Jäckel's LetsBeRational an extremely fast and accurate method for
obtaining Black's implied volatility from option prices with as little as two
iterations to maximum attainable precision on standard
(64 bit floating point) hardware for all possible inputs.
''',
url='http://jaeckel.org',
download_url='git+https://github.com/vollib/lets_be_rational.git#egg=lets_be_rational',
maintainer='vollib',
maintainer_email='support@quantycarlo.com',
license="MIT",
ext_modules=[cpp_module],
packages=['lets_be_rational'],
data_files=[
('src', [
'src/importexport.h',
'src/normaldistribution.h',
'src/rationalcubic.h',
'src/version.h'
]),]
)