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