### Install the built wheel with pip Source: https://github.com/lballabio/quantlib-swig/blob/master/Python/README.md After the wheel is built, install it using pip. ```bash pip install path/to/your/wheel.whl ``` -------------------------------- ### Install build tools with pip Source: https://github.com/lballabio/quantlib-swig/blob/master/Python/README.md Install the necessary packages for building wrappers. It is recommended to do this within a virtual environment. ```bash pip install setuptools build ``` -------------------------------- ### Install R Package Source: https://github.com/lballabio/quantlib-swig/blob/master/R/README.txt Standard installation command for an R package from its source directory. ```bash R CMD INSTALL . ``` -------------------------------- ### Run test suite with tox Source: https://github.com/lballabio/quantlib-swig/blob/master/Python/README.md Install and use 'tox' to run the test suite for the QuantLib-Python extension module. ```bash pip install tox ``` ```bash tox run ``` -------------------------------- ### Configure QuantLib-SWIG Build with JDK Paths Source: https://github.com/lballabio/quantlib-swig/blob/master/Java/README.txt Use this command to configure the build process on Linux systems. Ensure the JDK include paths are correctly specified for your Java installation. ```bash ./autogen.sh ./configure --with-jdk-include=/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include \ --with-jdk-system-include=usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include/linux ``` -------------------------------- ### Generate wrappers with make or swig.cmd Source: https://github.com/lballabio/quantlib-swig/blob/master/Python/README.md Use 'make' on Unix-like systems or 'swig.cmd' on Windows to generate the C++ wrappers if building from a Git checkout. Running 'make' also builds the wheel. ```bash make ``` ```bash swig.cmd ``` -------------------------------- ### Configure QuantLib build environment variables Source: https://github.com/lballabio/quantlib-swig/blob/master/Python/README.md Set environment variables to help the compiler find QuantLib headers and libraries. 'QL_DIR' is essential on Windows. 'INCLUDE' can be used for Boost headers on Unix-like systems. ```bash export QL_DIR=C:\\Lib\\QuantLib ``` ```bash export QL_DEBUG=TRUE ``` ```bash export INCLUDE=/path/to/boost ``` -------------------------------- ### Build wheel on Windows Source: https://github.com/lballabio/quantlib-swig/blob/master/Python/README.md On Windows, explicitly build the wheel after generating wrappers using the 'build' package. ```bash python -m build --wheel ``` -------------------------------- ### Build QuantLib R Library Source: https://github.com/lballabio/quantlib-swig/blob/master/R/README.txt Command to generate the R library, wrapper script, and compiled data. ```bash make ``` -------------------------------- ### Load Uncompiled QuantLib Wrapper Source: https://github.com/lballabio/quantlib-swig/blob/master/R/README.txt Alternative method to load the uncompiled QuantLib wrapper script and its shared library. ```R dyn.load('QuantLib_wrap.so') source('QuantLib.R') ``` -------------------------------- ### Load Compiled QuantLib R Library Source: https://github.com/lballabio/quantlib-swig/blob/master/R/README.txt Steps to dynamically load the compiled QuantLib shared library and its R data, including a workaround for S4 method loading. ```R dyn.load('QuantLib.so') load('QuantLib.RData') cacheMetaData(1) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.