OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
lib
/
python3.6
/
dist-packages
/
skbuild
/
platform_specifics
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 05:59:08 AM
rwxr-xr-x
📄
__init__.py
434 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📁
__pycache__
-
10/28/2024 05:59:08 AM
rwxr-xr-x
📄
abstract.py
12.23 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
bsd.py
218 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
cygwin.py
1 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
linux.py
2.73 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
osx.py
704 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
platform_factory.py
1.03 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
unix.py
745 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
windows.py
9.72 KB
10/28/2024 05:59:06 AM
rw-r--r--
Editing: platform_factory.py
Close
"""This modules implements the logic allowing to instantiate the expected :class:`.abstract.CMakePlatform`.""" # pylint: disable=import-outside-toplevel import platform from . import abstract def get_platform() -> "abstract.CMakePlatform": """Return an instance of :class:`.abstract.CMakePlatform` corresponding to the current platform.""" this_platform = platform.system().lower() if this_platform == "windows": from . import windows return windows.WindowsPlatform() if this_platform == "linux": from . import linux return linux.LinuxPlatform() if this_platform.startswith("cygwin"): from . import cygwin return cygwin.CygwinPlatform() if this_platform == "darwin": from . import osx return osx.OSXPlatform() if this_platform in {"freebsd", "os400", "openbsd"}: from . import bsd return bsd.BSDPlatform() msg = f"Unsupported platform: {this_platform:s}. Please contact the scikit-build team." raise RuntimeError(msg)