Skip to content

Commit c11c86c

Browse files
committed
Build on Windows
Based on changes to the quantlib recipe such that it builds a static library for the dynamic runtime, it is possible to build a python package on Windows. However we need to also run swig (by running the setup.py wrap command) first. Since quantlib.hpp is now generated correctly by the quantlib recipe it can be removed from this recipe.
1 parent 93148f9 commit c11c86c

3 files changed

Lines changed: 3 additions & 66 deletions

File tree

recipe/bld.bat

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
2-
set QL_DIR=C:\Miniconda\
3-
4-
echo "Overwriting quantlib.hpp"
5-
copy /y %RECIPE_DIR%\quantlib.hpp %PREFIX%\Library\include\ql\quantlib.hpp
6-
71
cd Python
2+
python setup.py wrap
83
python setup.py build
94
python setup.py test
105
python setup.py install

recipe/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ source:
1212
sha256: {{ sha256 }}
1313

1414
build:
15-
number: 1
16-
skip: true # [win]
15+
number: 2
16+
skip: true # [win and vc<14]
1717

1818
requirements:
1919
build:

recipe/quantlib.hpp

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)