aboutsummaryrefslogtreecommitdiff
path: root/math/py-nlopt/files/patch-extensions.py
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-nlopt/files/patch-extensions.py')
-rw-r--r--math/py-nlopt/files/patch-extensions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/py-nlopt/files/patch-extensions.py b/math/py-nlopt/files/patch-extensions.py
new file mode 100644
index 000000000000..1c8cfb1104cd
--- /dev/null
+++ b/math/py-nlopt/files/patch-extensions.py
@@ -0,0 +1,11 @@
+--- extensions.py.orig 2022-06-19 20:42:31 UTC
++++ extensions.py
+@@ -25,7 +25,7 @@ class NLOptBuild(build_ext):
+ except OSError:
+ raise RuntimeError("CMake must be installed")
+
+- if platform.system() not in ("Windows", "Linux", "Darwin"):
++ if platform.system() not in ("Windows", "Linux", "Darwin", "FreeBSD"):
+ raise RuntimeError(f"Unsupported os: {platform.system()}")
+
+ for ext in self.extensions: