Run LeonOS 4 x86_64 ELF applications on Windows Python.
Project description
los2w
los2w runs current static LeonOS 4 x86_64 ELF applications directly on
Windows Python. It maps a selected Windows directory as the guest 0:/ drive
and provides the current filesystem, GUI, network, and selected system ioctls.
Install
py -m pip install los2w
Run
To run from a source checkout, install the development dependencies:
py -m pip install -r los2w\requirements.txt
Open the GUI:
py -m los2w
Run a smoke test:
py -m los2w --elf build\userland\oshlp.elf --root build\esp --arg 0:/docs/leonos.hlp --smoke
The GUI records the ten most recent ELF and root-directory choices in its host
configuration. Use App UI style to start the selected application with the
modern Metro UI or classic Win95 UI; Metro is the default and the choice is
saved for later launches. The selected style is exposed only for the running
guest through 0:/system/config/display.conf, so the mapped image directory is not
modified. Command-line launches can select the same style with
--ui-theme metro or --ui-theme win95.
Select Export report to write the current diagnostic JSON.
An unsupported ABI or guest fault automatically writes a report in the local
los2w reports directory. Command-line runs can use --report path.json or
--compat-report for the same data.
Package
Install packaging dependencies and build the default fast-starting folder distribution. PyInstaller's PySide6 hook collects only the Qt runtime pieces used by the runner; Unicorn is collected explicitly for its native emulator library:
py -m pip install -r los2w\requirements-release.txt
py -m los2w.build_release
The executable is written to dist\los2w\los2w.exe. Add --onefile only
when a single executable is more important than startup time.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file los2w-0.1.0.tar.gz.
File metadata
- Download URL: los2w-0.1.0.tar.gz
- Upload date:
- Size: 43.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1246ae975128e3369ae4a8644d8a4ad97b320707e16092905517f50b42993eb1
|
|
| MD5 |
9fbb200bffca9fbb17faa734f764fa9b
|
|
| BLAKE2b-256 |
da9ddd4401b8a59c755644e8a2de774ac81a8f0f1edd5a3e66cac44503885dcc
|
File details
Details for the file los2w-0.1.0-py3-none-any.whl.
File metadata
- Download URL: los2w-0.1.0-py3-none-any.whl
- Upload date:
- Size: 47.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f79f446d715a4cdf2c3839aa929f88cf47c47578cd8f4577ba07c3842a895953
|
|
| MD5 |
bf0d5ac6ad300ac61c98a06f77436bdd
|
|
| BLAKE2b-256 |
d083ff9899af8156ebee9c51f8875fd4148434b1348c063ce30dc5d33e63821d
|