Skip to content

Commit

Permalink
fix: add support for netbsd & pyodide (future)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed May 12, 2023
1 parent 571afed commit ec82a3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skbuild/platform_specifics/platform_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def get_platform() -> abstract.CMakePlatform:

return windows.WindowsPlatform()

if this_platform == "linux":
# Some flexibility based on what emcripten distros decide to call themselves
if this_platform.startswith(("linux", "emscripten", "pyodide")):
from . import linux

return linux.LinuxPlatform()
Expand All @@ -34,7 +35,7 @@ def get_platform() -> abstract.CMakePlatform:

return osx.OSXPlatform()

if this_platform in {"freebsd", "os400", "openbsd"}:
if this_platform in {"freebsd", "netbsd", "os400", "openbsd"}:
from . import bsd

return bsd.BSDPlatform()
Expand Down

0 comments on commit ec82a3a

Please sign in to comment.