opnsense-ports/math/py-nlopt/files/patch-extensions.py
Franco Fichtner ea5a871f27 */*: sync with upstream
Taken from: FreeBSD
2022-06-20 12:25:25 +02:00

11 lines
458 B
Python

--- 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: