forked from scikit-build/scikit-build
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add support for sunos (scikit-build#983)
* fix: add support for sunos * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b53bd6b
commit f2d253e
Showing
4 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""This module defines object specific to SunOS platform.""" | ||
|
||
from __future__ import annotations | ||
|
||
import sys | ||
import textwrap | ||
|
||
from . import unix | ||
|
||
|
||
class SunOSPlatform(unix.UnixPlatform): | ||
"""SunOS implementation of :class:`.abstract.CMakePlatform`.""" | ||
|
||
@property | ||
def generator_installation_help(self) -> str: | ||
"""Return message guiding the user for installing a valid toolchain.""" | ||
return ( | ||
textwrap.dedent( | ||
""" | ||
Building SunOS wheels for Python {pyver} requires build toolchain. | ||
It can be installed using: | ||
pkg install build-essential | ||
""" | ||
) | ||
.format(pyver=".".join(str(v) for v in sys.version_info[:2])) | ||
.strip() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters