opnsense-ports/math/py-nlopt/files/patch-extensions.py
Franco Fichtner 3e02d2b4f1 */*: sync with upstream
Taken from: FreeBSD
2024-04-15 19:12:18 +02:00

11 lines
458 B
Python

--- extensions.py.orig 2024-04-03 02:23:20 UTC
+++ extensions.py
@@ -26,7 +26,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: