-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
75 lines (66 loc) · 2.11 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import platform
from distutils.core import setup
from distutils.extension import Extension
from setuptools import find_packages
from Cython.Build import cythonize
import numpy
# read the contents of your README file
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.rst").read_text()
IS_WINDOWS = platform.system() == "Windows"
if IS_WINDOWS:
extra_compile_args = ['/openmp', '/Ox']
extra_link_args = []
else:
extra_compile_args = ['-fopenmp', '-std=c++11', '-O3']
extra_link_args = ['-fopenmp', '-std=c++11']
extensions = [
Extension("pyprotolinc._actuarial",
["src/pyprotolinc/actuarial/valuation.pyx",
],
include_dirs=["src/pyprotolinc/actuarial/c_src/modules",
numpy.get_include()],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args
)
]
setup(
name='PyProtolinc',
version='0.1.7',
description='Projection Tool for Life Insurance Cash Flows',
long_description=long_description,
long_description_content_type='text/x-rst',
author='Martin Seehafer',
keywords='actuarial, projection, cash flows, life, insurance',
license='MIT',
url='https://github.com/mseehafer/PyProtolinc',
zip_safe=False,
include_package_data=True,
package_data={"pyprotolinc.actuarial": [
"src/pyprotolinc/actuarial/valuation.pyx",
"src/pyprotolinc/actuarial/crisk_factors.pxd",
"src/pyprotolinc/actuarial/providers.pxd",
"src/pyprotolinc/actuarial/portfolio.pxd"]
},
packages=find_packages(where='src'),
package_dir={'': 'src'},
python_requires=">=3.9",
ext_modules=cythonize(extensions, language_level=3),
install_requires=[
'numpy==1.23.1',
'pandas',
'xlrd',
'cython>=3.0.5',
'pyyaml',
'fire',
'requests',
'openpyxl',
'pytest',
],
entry_points={
'console_scripts': [
'pyprotolinc=pyprotolinc.main:main',
'protolinc=pyprotolinc.main:main']
}
)