@@ -145,6 +145,8 @@ def get_cmake_options(self) -> List[str]:
145145 "-D CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=FALSE" , # Never use system packages, always use only the libpack
146146 "-D CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=TRUE" , # Same as above?
147147 "-D CMAKE_CXX_STANDARD=20" ,
148+ "-T fortran=ifx" ,
149+ "-D CMAKE_Fortran_COMPILER='C:/Program Files (x86)/Intel/oneAPI/compiler/2025.0/bin/ifx.exe'" , # Intel Fortran is called ifx now
148150 f"-D BISON_EXECUTABLE={ self .bison_path } " ,
149151 f"-D BOOST_ROOT={ self .install_dir } " ,
150152 "-D BUILD_DOC=No" ,
@@ -172,6 +174,8 @@ def get_cmake_options(self) -> List[str]:
172174 f"-D pybind11_DIR={ self .install_dir } /share/cmake/pybind11" ,
173175 f"-D Python_ROOT_DIR={ self .install_dir } /bin" ,
174176 f"-D Python_DIR={ self .install_dir } /bin" ,
177+ f"-D Python3_ROOT_DIR={ self .install_dir } /bin" ,
178+ f"-D Python3_DIR={ self .install_dir } /bin" ,
175179 "-D Python_FIND_REGISTRY=NEVER" ,
176180 f"-D Qt6_DIR={ self .install_dir } /lib/cmake/Qt6" ,
177181 f"-D SWIG_EXECUTABLE={ self .install_dir } /bin/swig" + to_exe (),
@@ -737,7 +741,11 @@ def build_vtk(self, _=None):
737741 if os .path .exists (os .path .join (self .install_dir , "share" , "licenses" , "VTK" )):
738742 print (" Not rebuilding VTK, it is already in the LibPack" )
739743 return
740- extra_args = ["-D VTK_WRAP_PYTHON=YES" , "-D VTK_MODULE_ENABLE_VTK_WrappingPythonCore=YES" ]
744+ extra_args = [
745+ "-D VTK_WRAP_PYTHON=YES" ,
746+ "-D VTK_MODULE_ENABLE_VTK_WrappingPythonCore=YES" ,
747+ "-D VTK_PYTHON_SITE_PACKAGES_SUFFIX=bin/Lib/site-packages/" ,
748+ ]
741749 if sys .platform .startswith ("win32" ):
742750 extra_args .append (
743751 "-D VTK_MODULE_ENABLE_VTK_IOIOSS=NO" , # Workaround for bug in Visual Studio MSVC 143
@@ -1001,7 +1009,7 @@ def build_medfile(self, _: None):
10011009 if os .path .exists (os .path .join (self .install_dir , "include" , "medfile.h" )):
10021010 print (" Not rebuilding medfile, it is already in the LibPack" )
10031011 return
1004- extra_args = ["-D MEDFILE_USE_UNICODE=On" ]
1012+ extra_args = ["-D MEDFILE_USE_UNICODE=On" , "-D MEDFILE_BUILD_TESTS=OFF" ]
10051013 old_strict_mode = self .strict_mode
10061014 self .strict_mode = False
10071015 self ._build_standard_cmake (extra_args )
@@ -1112,9 +1120,11 @@ def build_yamlcpp(self, _: None):
11121120
11131121 def build_opencamlib (self , _ : None ):
11141122 if self .skip_existing :
1115- os .path .join (self .install_dir , "bin" , "Lib" , "site-packages" , "opencamlib" )
1116- print (" Not rebuilding opencamlib, it is already in the LibPack" )
1117- return
1123+ if os .path .exists (
1124+ os .path .join (self .install_dir , "bin" , "Lib" , "site-packages" , "opencamlib" )
1125+ ):
1126+ print (" Not rebuilding opencamlib, it is already in the LibPack" )
1127+ return
11181128 extra_args = ["-D BUILD_CXX_LIB=OFF" , "-D BUILD_PY_LIB=ON" , "-D BUILD_DOC=OFF" ]
11191129 self ._build_standard_cmake (extra_args )
11201130
0 commit comments