Skip to content

Commit dce189c

Browse files
Initial feedstock commit with conda-smithy 3.19.0.
0 parents  commit dce189c

5 files changed

Lines changed: 130 additions & 0 deletions

File tree

conda-forge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

recipe/bld.bat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
7+
cd Python
8+
python setup.py build
9+
python setup.py test
10+
python setup.py install
11+

recipe/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
./autogen.sh
4+
./configure PYTHON CXXFLAGS='-O1'
5+
make -C Python
6+
make -C Python check
7+
make -C Python wheel
8+
pip install Python/dist/QuantLib-*.whl

recipe/meta.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{% set name = "QuantLib-python" %}
2+
{% set version = "1.26" %}
3+
{% set sha256 = "2c3107329e44a24754f69a9386382ea065f0c8a752865d2a727a235799df8321" %}
4+
5+
package:
6+
name: {{ name|lower }}
7+
version: {{ version }}
8+
9+
source:
10+
fn: {{ name }}-{{ version }}.tar.gz
11+
url: https://github.com/lballabio/QuantLib-SWIG/archive/refs/tags/QuantLib-SWIG-v{{ version }}.tar.gz
12+
sha256: {{ sha256 }}
13+
14+
build:
15+
number: 0
16+
skip: true # [win]
17+
18+
requirements:
19+
build:
20+
- {{ compiler('c') }}
21+
- {{ compiler('cxx') }}
22+
- autoconf # [unix]
23+
- automake # [unix]
24+
- make # [unix]
25+
- swig
26+
host:
27+
- python
28+
- pip
29+
- boost-cpp
30+
- quantlib =={{ version }}
31+
32+
run:
33+
- python
34+
- quantlib
35+
36+
test:
37+
imports:
38+
- QuantLib
39+
40+
about:
41+
home: https://github.com/lballabio/QuantLib
42+
license: BSD-3-Clause
43+
license_family: BSD
44+
license_file: LICENSE.TXT
45+
summary: The python wrapper of QuantLib.
46+
description: The QuantLib project (https://www.quantlib.org) is aimed at providing a comprehensive software framework for quantitative finance. QuantLib is a free/open-source library for modeling, trading, and risk management in real-life.
47+
doc_url: https://www.quantlib.org
48+
dev_url: https://github.com/lballabio/QuantLib
49+
50+
extra:
51+
recipe-maintainers:
52+
- timkpaine

recipe/quantlib.hpp

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/* This file is automatically generated; do not edit. */
2+
/* Add the files to be included into Makefile.am instead. */
3+
4+
#include <ql/qldefines.hpp>
5+
#include <ql/version.hpp>
6+
#include <ql/auto_link.hpp>
7+
8+
#include <ql/auto_ptr.hpp>
9+
#include <ql/cashflow.hpp>
10+
#include <ql/compounding.hpp>
11+
#include <ql/currency.hpp>
12+
#include <ql/default.hpp>
13+
#include <ql/discretizedasset.hpp>
14+
#include <ql/errors.hpp>
15+
#include <ql/exchangerate.hpp>
16+
#include <ql/exercise.hpp>
17+
#include <ql/event.hpp>
18+
#include <ql/functional.hpp>
19+
#include <ql/grid.hpp>
20+
#include <ql/handle.hpp>
21+
#include <ql/index.hpp>
22+
#include <ql/instrument.hpp>
23+
#include <ql/interestrate.hpp>
24+
#include <ql/money.hpp>
25+
#include <ql/numericalmethod.hpp>
26+
#include <ql/option.hpp>
27+
#include <ql/payoff.hpp>
28+
#include <ql/position.hpp>
29+
#include <ql/prices.hpp>
30+
#include <ql/pricingengine.hpp>
31+
#include <ql/quote.hpp>
32+
#include <ql/rebatedexercise.hpp>
33+
#include <ql/settings.hpp>
34+
#include <ql/shared_ptr.hpp>
35+
#include <ql/stochasticprocess.hpp>
36+
#include <ql/termstructure.hpp>
37+
#include <ql/timegrid.hpp>
38+
#include <ql/timeseries.hpp>
39+
#include <ql/tuple.hpp>
40+
#include <ql/types.hpp>
41+
#include <ql/volatilitymodel.hpp>
42+
43+
#include <ql/cashflows/all.hpp>
44+
#include <ql/currencies/all.hpp>
45+
#include <ql/experimental/all.hpp>
46+
#include <ql/indexes/all.hpp>
47+
#include <ql/instruments/all.hpp>
48+
#include <ql/legacy/all.hpp>
49+
#include <ql/math/all.hpp>
50+
#include <ql/methods/all.hpp>
51+
#include <ql/models/all.hpp>
52+
#include <ql/patterns/all.hpp>
53+
#include <ql/pricingengines/all.hpp>
54+
#include <ql/processes/all.hpp>
55+
#include <ql/quotes/all.hpp>
56+
#include <ql/termstructures/all.hpp>
57+
#include <ql/time/all.hpp>
58+
#include <ql/utilities/all.hpp>

0 commit comments

Comments
 (0)