From 17c605e07c468e9cc1d795e4770865bb92366822 Mon Sep 17 00:00:00 2001 From: Brad Aagaard Date: Tue, 11 Aug 2026 21:53:23 -0600 Subject: [PATCH] FIX: Add configure option to control pip build isolation. --- configure.ac | 8 ++++++++ spatialdata/Makefile.am | 7 +++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 183db8b..a88d08e 100644 --- a/configure.ac +++ b/configure.ac @@ -50,6 +50,14 @@ AC_ARG_ENABLE([scec-cvm-h], [], [enable_scec_cvm_h=no]) +dnl pip install with build isolation +AC_ARG_WITH([build-isolation], + [AC_HELP_STRING([--with-build-isolation], + [run pip with build-isolation @<:@default=yes@:>@])], + [build_isolation=$withval], + [build_isolation="yes"]) +AM_CONDITIONAL([PIP_BUILD_ISOLATION], [test "$build_isolation" = yes]) + dnl ---------------------------------------------------------------------- AC_PROG_CXX AC_PROG_CC diff --git a/spatialdata/Makefile.am b/spatialdata/Makefile.am index 45cccd0..771a1b2 100644 --- a/spatialdata/Makefile.am +++ b/spatialdata/Makefile.am @@ -9,9 +9,12 @@ # See https://mit-license.org/ and LICENSE.md and for license information. # ================================================================================================= +if PIP_BUILD_ISOLATION +else +PIP_ISOLATION_FLAG=--no-build-isolation +endif install-exec-local: - echo $(top_srcdir) - $(PYTHON) -m pip install --no-build-isolation --prefix=$(prefix) $(top_srcdir) + $(PYTHON) -m pip install --prefix=$(prefix) $(PIP_ISOLATION_FLAG) $(top_srcdir) EXTRA_DIST = \ __init__.py \