@@ -73,6 +73,7 @@ args=$(or_die getopt -a -o h --long build-exe-only,cmake-build-type:,code-covera
73
73
# Variables with default values
74
74
BUILD_EXE_ONLY=false
75
75
GEOSX_INSTALL_SCHEMA=true
76
+ BUILD_PYGEOSX=true
76
77
HOST_CONFIG=" host-configs/environment.cmake"
77
78
RUN_UNIT_TESTS=true
78
79
RUN_INTEGRATED_TESTS=false
108
109
--no-run-unit-tests) RUN_UNIT_TESTS=false; shift ;;
109
110
--nproc) NPROC=$2 ; shift 2;;
110
111
--repository) GEOS_SRC_DIR=$2 ; shift 2;;
112
+ --build_pygeosx) BUILD_PYGEOSX=true; shift ;;
111
113
--run-integrated-tests) RUN_INTEGRATED_TESTS=true; shift ;;
112
114
--upload-test-baselines) UPLOAD_TEST_BASELINES=true; shift ;;
113
115
--code-coverage) CODE_COVERAGE=true; shift ;;
@@ -201,6 +203,15 @@ if [[ "${CODE_COVERAGE}" = true ]]; then
201
203
fi
202
204
203
205
206
+ PYGEOSX_ARGS=" "
207
+ if [[ " ${BUILD_PYGEOSX} " = true ]]; then
208
+ echo " Enabling pygeosx."
209
+ or_die apt-get install -y python3-dev
210
+
211
+ PYTHON_EXEC=$( which python3)
212
+ PYGEOSX_ARGS=" -DENABLE_PYGEOSX=ON -DPython3_EXECUTABLE=$PYTHON_EXEC "
213
+ fi
214
+
204
215
205
216
# The -DBLT_MPI_COMMAND_APPEND="--allow-run-as-root;--oversubscribe" option is added for OpenMPI.
206
217
#
@@ -226,7 +237,8 @@ or_die python3 scripts/config-build.py \
226
237
-DGEOSX_INSTALL_SCHEMA=${GEOSX_INSTALL_SCHEMA} \
227
238
-DENABLE_COVERAGE=$( [[ " ${CODE_COVERAGE} " = true ]] && echo 1 || echo 0) \
228
239
${SCCACHE_CMAKE_ARGS} \
229
- ${ATS_CMAKE_ARGS}
240
+ ${ATS_CMAKE_ARGS} \
241
+ $PYGEOSX_ARGS
230
242
231
243
# The configuration step is now over, we can now move to the build directory for the build!
232
244
or_die cd ${GEOSX_BUILD_DIR}
0 commit comments