`pip install ogs` fails on arm-based MacOS for v6.5.7 and v6.5.8

We cannot install OGS using pip install ogs on arm-based MacOS computers.

The error is due to an unset CPM_SOURCE_CACHE variable.

Please see the error message below:

CMake Error at scripts/cmake/Dependencies.cmake:196 (message): 

CPM_SOURCE_CACHE not set but is required when patched third-party libraries are use, see


Call Stack (most recent call first):
CMakeLists.txt:102 (include)

  -- Configuring incomplete, errors occurred!

  *** CMake configuration failed
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ogs

Hi,

it’s strange that pip install tries to build the OGS Python wheel. AFAICS there are prebuilt ARM Mac binary wheels available:

Which Python version do you use? Which version of MacOS do you have? Which processor? M3? M…?

Do things work if you set CPM_SOURCE_CACHE? (CPM_SOURCE_CACHE=/SOME/NEW/DIR pip install ogs). Note: The OGS build will put a lot of data into CPM_SOURCE_CACHE.

Here are the details:

Python version: 3.12.13
MacOS: 14.6.1
Processor: M1

We are trying to install by setting the CPM_SOURCE_CACHE. We will report back.

Setting CPM_SOURCE_CACHE should get past that CMake error, but pip will still be compiling OGS and its dependencies from source, so expect a long build and possibly more macOS-specific failures. It’s worth confirming whether a prebuilt arm64 wheel exists for Python 3.12 and ogs 6.5.8: pip install --only-binary=:all: ogs==6.5.8. If pip says no matching distribution, using a Python version that has a wheel for that release would avoid the source build entirely.