readme improve

This commit is contained in:
shenjack 2023-11-26 15:27:15 +08:00
parent 8c0795eb9c
commit 5b359f22de
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -56,8 +56,9 @@ logger.trace('so this message will be in the same line', tag='same line!')
### Nuitka pyproject paser
> WIP
> 等待 0.2.0
> `pyproject.toml` 内的配置
>
> Config in `pyproject.toml`
```toml title="pyproject.toml"
[tool.lndl.nuitka]
@ -67,6 +68,10 @@ standalone = true
onefile = false
```
> 通过 `lndl_nuitka` 命令行工具使用
>
> Use with `lndl_nuitka` command line tool
```bash
lndl_nuitka .
lndl_nuitka . -- --onefile
@ -77,6 +82,10 @@ lndl_nuitka . -n
# do not run
```
> 通过 `lib_not_dr.nuitka.reader` 模块使用
>
> Use with `lib_not_dr.nuitka.reader`
```python
from tomli import loads
from lib_not_dr.nuitka.reader import main, run_nuitka
@ -93,6 +102,7 @@ run_nuitka(command)
#### Warning/警告
::: warning
> 已经弃用 Deprecated
> 请改用 lndl_nuitka / python -m lndl_nuitka
@ -138,5 +148,4 @@ else: # do_run is None
if do_run:
subprocess.run(compiler.gen_subprocess_cmd())
```