Skip to content

Commit 4fffaf0

Browse files
rolandlichtersjenkins
authored andcommitted
merge with master
1 parent 10acf89 commit 4fffaf0

1 file changed

Lines changed: 25 additions & 12 deletions

File tree

Docs/UserGuide/userguide.tex

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ \subsection{Building ORE-SWIG}\label{sec:oreswig}
865865
\hspace{1cm} {\tt -D ORE=<ORE Root Directory> $\backslash$} \\
866866
\hspace{1cm} {\tt -D BOOST\_ROOT=<Top level boost include directory> $\backslash$}\\
867867
\hspace{1cm} {\tt -D BOOST\_LIBRARYDIR=<Location of the compiled boost libraries> $\backslash$}\\
868-
\hspace{1cm} {\tt -D PYTHON\_LIBRARY=<Full name including path to the 'libpython*' library> $\backslash$} \\
868+
\hspace{1cm} {\tt -D PYTHON\_LIBRARY=<Full name including path to the 'libpython*' library>$\backslash$} \\
869869
\hspace{1cm} {\tt -D PYTHON\_INCLUDE\_DIR=<Directory that contains Python.h> $\backslash$} \\
870870
\hspace{1cm} {\tt ..} \\
871871
{\tt ninja} \\
@@ -938,11 +938,11 @@ \subsubsection*{Environment variables}
938938

939939
Set the following environment variables to the paths where the above items live on your machine, e.g:
940940

941-
{\tt SET DEMO\_BOOST\_ROOT=C:{\bs}repos{\bs}boost{\bs}boost\_1\_81\_0} \\
942-
{\tt SET DEMO\_BOOST\_LIB=C:{\bs}repos{\bs}boost{\bs}boost\_1\_81\_0{\bs}lib{\bs}x64{\bs}lib} \\
943-
{\tt SET DEMO\_SWIG\_DIR=C:{\bs}repos{\bs}swigwin-4.1.1} \\
944-
{\tt SET DEMO\_ORE\_DIR=C:{\bs}repos{\bs}ore } \\
945-
{\tt SET DEMO\_ORE\_SWIG\_DIR=C:{\bs}repos{\bs}oreswig}
941+
{\tt set DEMO\_BOOST\_ROOT=C:{\bs}repos{\bs}boost{\bs}boost\_1\_81\_0} \\
942+
{\tt set DEMO\_BOOST\_LIB=C:{\bs}repos{\bs}boost{\bs}boost\_1\_81\_0{\bs}lib{\bs}x64{\bs}lib} \\
943+
{\tt set DEMO\_SWIG\_DIR=C:{\bs}repos{\bs}swigwin-4.1.1} \\
944+
{\tt set DEMO\_ORE\_DIR=C:{\bs}repos{\bs}ore } \\
945+
{\tt set DEMO\_ORE\_SWIG\_DIR=C:{\bs}repos{\bs}oreswig}
946946

947947
\subsubsection*{Build ORE}
948948

@@ -954,7 +954,8 @@ \subsubsection*{Build ORE}
954954
{\tt cd \%DEMO\_ORE\_DIR\%{\bs}build} \\
955955
{\tt set BOOST\_INCLUDEDIR=\%DEMO\_BOOST\_ROOT\%} \\
956956
{\tt set BOOST\_LIBRARYDIR=\%DEMO\_BOOST\_LIB\%} \\
957-
{\tt "C:{\bs}Program Files{\bs}CMake{\bs}bin{\bs}cmake.exe" .. $\backslash$\\
957+
%{\tt "C:{\bs}Program Files{\bs}CMake{\bs}bin{\bs}cmake.exe" .. $\backslash$\\
958+
{\tt cmake .. $\backslash$\\
958959
\hspace{1cm} -DBoost\_NO\_WARN\_NEW\_VERSIONS=1 $\backslash$\\
959960
\hspace{1cm} -Wno-dev -G "Visual Studio 17 2022" $\backslash$ \\
960961
\hspace{1cm} -A x64 $\backslash$\\
@@ -968,7 +969,8 @@ \subsubsection*{Build ORE}
968969

969970
\medskip
970971
{\tt cd \%DEMO\_ORE\_DIR\%{\bs}build} \\
971-
{\tt "C:{\bs}Program Files{\bs}CMake{\bs}bin{\bs}cmake.exe" -{}-build . -{}-config Release}
972+
%{\tt "C:{\bs}Program Files{\bs}CMake{\bs}bin{\bs}cmake.exe" -{}-build . -{}-config Release}
973+
{\tt cmake -{}-build . -{}-config Release}
972974

973975
\medskip
974976
This will create \%DEMO\_ORE\_DIR\%{\bs}build{\bs}OREAnalytics{\bs}orea{\bs}Release{\bs}OREAnalytics-x64-mt.lib
@@ -990,16 +992,27 @@ \subsubsection*{Build ORE-SWIG Wrapper and Wheel}
990992
{\tt python -m build -{}-wheel}
991993

992994
\medskip
993-
This will create the wheel file (filename.whl) in folder \%DEMO\_ORE\_SWIG\_DIR\%{\bs}OREAnalytics-SWIG{\bs}Python{\bs}dist.
994-
995+
This will create
996+
\begin{itemize}
997+
\item the Python module and static library in folder {\tt <PATH>{\bs}build{\bs}lib.win-amd64-cpython-310} (the directory name depends on the machine and python version)
998+
\item the wheel file (filename.whl) in folder {\tt <PATH>{\bs}dist}
999+
\end{itemize}
1000+
where {\tt <PATH>} stands for {\tt \%DEMO\_ORE\_SWIG\_DIR\%{\bs}OREAnalytics-SWIG{\bs}Python}.
1001+
1002+
\medskip
1003+
To use the wrapper directly: \\
9951004
\medskip
1005+
{\tt cd <PATH>{\bs}Examples} \\
1006+
{\tt set PYTHONPATH=<PATH>{\bs}build{\bs}lib.win-amd64-cpython-310} \\
1007+
{\tt python commodityforward.py}
9961008

1009+
\medskip
9971010
To use the wheel:
9981011

999-
{\tt cd \%DEMO\_ORE\_SWIG\_DIR\%{\bs}OREAnalytics-SWIG{\bs}Python{\bs}Examples} \\
1012+
{\tt cd <PATH>{\bs}Examples} \\
10001013
{\tt python -m venv env1} \\
10011014
{\tt .{\bs}env1{\bs}Scripts{\bs}activate.bat} \\
1002-
{\tt pip install \%DEMO\_ORE\_SWIG\_DIR\%{\bs}OREAnalytics-SWIG{\bs}Python{\bs}dist{\bs}filename.whl} \\
1015+
{\tt pip install <PATH>{\bs}dist{\bs}filename.whl} \\
10031016
{\tt python commodityforward.py} \\
10041017
{\tt deactivate} \\
10051018
{\tt rmdir /s /q env1} \\

0 commit comments

Comments
 (0)