build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
depend : ['Python', 'openblas', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'fftw']
opt_depend : ['pandas', 'statsmodels', 'patsy']
- patches : []
+ patches : ['openturns-1.23.0002.patch']
properties :
{
single_install_dir : "no"
--- /dev/null
+--- omniORBpy-4.2.6_ref/python3/omniORB/__init__.py 2020-09-18 18:13:06.000000000 +0200
++++ omniORBpy-4.2.6_dev/python3/omniORB/__init__.py 2024-10-30 13:36:43.392056333 +0100
+@@ -42,29 +42,7 @@
+ raise ImportError("Python executable has no thread support")
+
+ omniorb_dll_path = None
+-
+-if sys.platform == "win32" and hasattr(os, "add_dll_directory"):
+- # Python 3.8 on Windows no longer looks in PATH to find DLLs,
+- # meaning that importing the omniORBpy extension modules fails.
+- # You can set the OMNIORB_DLL_PATH environment variable to the
+- # directory they are in, or this attempts to find them in the
+- # default location.
+- omniorb_dll_path = os.environ.get("OMNIORB_DLL_PATH")
+-
+- if omniorb_dll_path is None:
+- omniorb_dll_path = os.path.abspath(
+- os.path.join(os.path.dirname(__file__),
+- r"..\..\..\bin\x86_win32"))
+-
+- if not os.path.isdir(omniorb_dll_path):
+- omniorb_dll_path = None
+-
+-
+-if omniorb_dll_path is not None:
+- with os.add_dll_directory(omniorb_dll_path):
+- import _omnipy
+-else:
+- import _omnipy
++import _omnipy
+
+ _coreVersion = _omnipy.coreVersion()
+ __version__ = _omnipy.__version__
--- /dev/null
+--- openturns-1.23_ref/openturns-1.23/lib/src/Base/Common/openturns/Log.hxx 2024-10-30 13:29:08.526681253 +0100
++++ openturns-1.23_dev/openturns-1.23/lib/src/Base/Common/openturns/Log.hxx 2024-10-30 13:30:05.420229339 +0100
+@@ -21,6 +21,12 @@
+ #ifndef OPENTURNS_LOG_HXX
+ #define OPENTURNS_LOG_HXX
+
++#ifdef WIN32
++ #ifdef ERROR
++ #undef ERROR
++ #endif
++#endif
++
+ #include <fstream>
+ #include <map>
+ #include "openturns/OTprivate.hxx"