From 2c7a4ca8800edd3b6e578dd4f6ee1bab471aa804 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 14 Sep 2022 10:56:52 +0200 Subject: [PATCH] Filter unsupported py versions on recent osx --- nix/build-all.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/build-all.py b/nix/build-all.py index 2078cfb7c5..97cf45e495 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -263,6 +263,11 @@ def run(cmds, cwd=None): return stdout.strip() +if platform.system() == "Darwin": + if run(["sw_vers", "-productVersion"]) >= "11.": + # Apparently not supported + PYTHON_VERSIONS = [pv for pv in PYTHON_VERSIONS if tuple(map(int, pv.split("."))) >= (3, 7)] + BOOST_VERSION_UNDERSCORE = BOOST_VERSION.replace(".", "_") OCE_LOCATION = f"https://github.com/tpaviot/oce/archive/OCE-{OCE_VERSION}.tar.gz"