Linux Platform¶
linux
¶
Linux-specific platform implementation.
Handles symlinks, Python detection, and admin checks on Linux systems. Long path support is a no-op (Linux has no 260-char limit).
LinuxPlatform
¶
Bases: Platform
Linux platform implementation.
is_admin()
¶
enable_long_paths(log=None)
¶
No-op on Linux — long paths are always supported.
Source code in src/platform/linux.py
detect_python(version='3.13', log=None)
¶
Detect a specific Python version on Linux.
Checks: python3.13, python3, python in PATH.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
version
|
str
|
The version to look for (e.g. "3.13"). |
'3.13'
|
log
|
InstallerLogger | None
|
Optional logger instance. |
None
|
Returns:
| Type | Description |
|---|---|
Path | None
|
Path to python executable, or None. |