Skip to content

Commit 018a9aa

Browse files
committed
build only windows 3
1 parent 585bd8b commit 018a9aa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
strategy:
4141
matrix:
4242
os: [windows-latest] # macos-latest,
43-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
43+
python-version: ["3.11"] #3.7, 3.8, 3.9, "3.10",
4444
steps:
4545
- uses: actions/checkout@v2
4646
- name: Set up Python

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_ext_filename(self, ext_name):
1616
Extension(
1717
name="csimOU",
1818
sources=["src/risktools/c/simOU.c"],
19-
extra_compile_args=['-fPIC', '-shared']
19+
extra_compile_args=['-fPIC', '-shared','/LD']
2020
)
2121
]
2222

src/risktools/c/simOU.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ void csimOU(
2020

2121
// pre-compute to make faster
2222
const size_t ll = rows * cols;
23-
float ss = 0;
23+
double ss = 0;
2424

2525
if (log_price != 0)
2626
{
2727
ss = 0.5 * sigma * sigma;
2828
}
2929

30-
const float sq = sqrt(dt);
30+
const double sq = sqrt(dt);
3131

3232
// input x is a 2D array that has been reshaped to be 1D.
3333
// Loop through entire 1D array of length rows*cols,

0 commit comments

Comments
 (0)