Skip to content

Commit

Permalink
Do not build pyi files when cross-compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Jan 3, 2023
1 parent 4a5dd92 commit 9bc4325
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then
CMAKE_ARGS="${CMAKE_ARGS} -DXDMF_REQUIRE_LARGE_FILE_SUPPORT_EXITCODE=0 -DXDMF_REQUIRE_LARGE_FILE_SUPPORT_EXITCODE__TRYRUN_OUTPUT="
fi

# Only build pyi files when natively compiling
if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then
CMAKE_ARGS="${CMAKE_ARGS} -DVTK_BUILD_PYI_FILES:BOOL=OFF"
else
CMAKE_ARGS="${CMAKE_ARGS} -DVTK_BUILD_PYI_FILES:BOOL=ON"
fi

mkdir build
cd build || exit

Expand All @@ -123,7 +130,6 @@ cmake -LAH .. -G "Ninja" ${CMAKE_ARGS} \
-DVTK_WRAP_PYTHON:BOOL=ON \
-DVTK_PYTHON_VERSION:STRING="${PYTHON_MAJOR_VERSION}" \
-DPython3_EXECUTABLE=$PYTHON \
-DVTK_BUILD_PYI_FILES:BOOL=ON \
-DVTK_MODULE_ENABLE_VTK_PythonInterpreter:STRING=NO \
-DVTK_MODULE_ENABLE_VTK_RenderingFreeType:STRING=YES \
-DVTK_MODULE_ENABLE_VTK_RenderingMatplotlib:STRING=YES \
Expand Down

0 comments on commit 9bc4325

Please sign in to comment.