[build skip] 文档真的好长啊
This commit is contained in:
parent
dc963ea28d
commit
7bc5be0974
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
在 Python 3.5+ 是需要的? 在 非 Windows 上 Python 2.6/2.7 也需要
|
在 Python 3.5+ 是需要的? 在 非 Windows 上 Python 2.6/2.7 也需要
|
||||||
|
|
||||||
## 控制包含模块和内容的选项:
|
## 编译模块和内容选项:
|
||||||
|
|
||||||
- `--include-package=PACKAGE`
|
- `--include-package=PACKAGE`
|
||||||
- 编译给定的整个模块和子包
|
- 编译给定的整个模块和子包
|
||||||
@ -67,12 +67,7 @@
|
|||||||
- 编译给定的单个模块
|
- 编译给定的单个模块
|
||||||
- 输入格式: Python 命名空间
|
- 输入格式: Python 命名空间
|
||||||
- 例如: `一个模块.的子包`
|
- 例如: `一个模块.的子包`
|
||||||
- nuitka 会寻找并编译这个模块
|
- nuitka 会寻找并编译这个模块,并让给定的包可以在代码中引用
|
||||||
Include a single module. Give as a Python namespace,
|
|
||||||
e.g. "some_package.some_module" and Nuitka will then
|
|
||||||
find it and include it in the binary or extension
|
|
||||||
module it creates, and make it available for import by
|
|
||||||
the code. Default empty.
|
|
||||||
|
|
||||||
- `--include-plugin-directory=MODULE/PACKAGE`
|
- `--include-plugin-directory=MODULE/PACKAGE`
|
||||||
Include also the code found in that directory,
|
Include also the code found in that directory,
|
||||||
@ -123,7 +118,7 @@
|
|||||||
lot and is also not well tested at this time and
|
lot and is also not well tested at this time and
|
||||||
sometimes won't work. Defaults to off.
|
sometimes won't work. Defaults to off.
|
||||||
|
|
||||||
Onefile options:
|
### Onefile 选项:
|
||||||
|
|
||||||
- `--onefile-tempdir-spec=ONEFILE_TEMPDIR_SPEC`
|
- `--onefile-tempdir-spec=ONEFILE_TEMPDIR_SPEC`
|
||||||
Use this as a folder to unpack to in onefile mode.
|
Use this as a folder to unpack to in onefile mode.
|
||||||
@ -133,7 +128,7 @@
|
|||||||
'%CACHE_DIR%/%COMPANY%/%PRODUCT%/%VERSION%' which is a
|
'%CACHE_DIR%/%COMPANY%/%PRODUCT%/%VERSION%' which is a
|
||||||
good static cache path, this will then not be removed.
|
good static cache path, this will then not be removed.
|
||||||
|
|
||||||
Data files:
|
### 数据文件:
|
||||||
|
|
||||||
- `--include-package-data=PACKAGE`
|
- `--include-package-data=PACKAGE`
|
||||||
Include data files for the given package name. DLLs
|
Include data files for the given package name. DLLs
|
||||||
@ -148,8 +143,8 @@
|
|||||||
package-data=package_name" (all files) "--include-
|
package-data=package_name" (all files) "--include-
|
||||||
package-data=package_name=*.txt" (only certain type) "
|
package-data=package_name=*.txt" (only certain type) "
|
||||||
-
|
-
|
||||||
- `--include-package-data=package_name=some_filename.dat
|
- `--include-package-data=package_name=some_filename.dat`
|
||||||
`` (concrete file) Default empty.
|
- (concrete file) Default empty.
|
||||||
|
|
||||||
- `--include-data-files=DESC`
|
- `--include-data-files=DESC`
|
||||||
Include data files by filenames in the distribution.
|
Include data files by filenames in the distribution.
|
||||||
@ -182,7 +177,7 @@
|
|||||||
"package_name/*.txt". Or for the whole directory
|
"package_name/*.txt". Or for the whole directory
|
||||||
simply use "package_name". Default empty.
|
simply use "package_name". Default empty.
|
||||||
|
|
||||||
DLL files:
|
### DLL 文件:
|
||||||
|
|
||||||
- `--noinclude-dlls=PATTERN`
|
- `--noinclude-dlls=PATTERN`
|
||||||
Do not include DLL files matching the filename pattern
|
Do not include DLL files matching the filename pattern
|
||||||
@ -195,7 +190,7 @@
|
|||||||
Output the DLLs found for a given package name.
|
Output the DLLs found for a given package name.
|
||||||
Default not done.
|
Default not done.
|
||||||
|
|
||||||
Control the warnings to be given by Nuitka:
|
### 哪些警告会给到 Nuitka:
|
||||||
|
|
||||||
- `--warn-implicit-exceptions`
|
- `--warn-implicit-exceptions`
|
||||||
Enable warnings for implicit exceptions detected at
|
Enable warnings for implicit exceptions detected at
|
||||||
@ -221,11 +216,15 @@
|
|||||||
|
|
||||||
Immediate execution after compilation:
|
Immediate execution after compilation:
|
||||||
|
|
||||||
- `--run Execute immediately the created binary (or import the`
|
- `--run`
|
||||||
compiled module). Defaults to off.
|
- 编译后立即运行二进制文件(或者导入编译的模块)
|
||||||
|
- 默认: `禁用`
|
||||||
|
|
||||||
- `--debugger Execute inside a debugger, e.g. "gdb" or "lldb" to`
|
- `--debugger`
|
||||||
automatically get a stack trace. Defaults to off.
|
- 在 debugger 中运行
|
||||||
|
- 例如: "gdb" 或 "lldb"
|
||||||
|
- 用于自动获取堆栈跟踪
|
||||||
|
- 默认: `禁用`
|
||||||
|
|
||||||
- `--execute-with-pythonpath`
|
- `--execute-with-pythonpath`
|
||||||
When immediately executing the created binary or
|
When immediately executing the created binary or
|
||||||
@ -298,7 +297,7 @@
|
|||||||
created by Nuitka. This is used to detect implicit
|
created by Nuitka. This is used to detect implicit
|
||||||
imports. Defaults to off.
|
imports. Defaults to off.
|
||||||
|
|
||||||
Debug features:
|
## Debug 特性:
|
||||||
|
|
||||||
- `--debug Executing all self checks possible to find errors in`
|
- `--debug Executing all self checks possible to find errors in`
|
||||||
Nuitka, do not use for production. Defaults to off.
|
Nuitka, do not use for production. Defaults to off.
|
||||||
@ -306,8 +305,10 @@
|
|||||||
- `--unstripped Keep debug info in the resulting object file for`
|
- `--unstripped Keep debug info in the resulting object file for`
|
||||||
better debugger interaction. Defaults to off.
|
better debugger interaction. Defaults to off.
|
||||||
|
|
||||||
- `--profile Enable vmprof based profiling of time spent. Not`
|
- `--profile`
|
||||||
working currently. Defaults to off.
|
- 启用基于 `vmprof` 的效率检测
|
||||||
|
- 现在还用不了
|
||||||
|
- 默认: `禁用`
|
||||||
|
|
||||||
- `--internal-graph Create graph of optimization process internals, do not`
|
- `--internal-graph Create graph of optimization process internals, do not`
|
||||||
use for whole programs, but only for small test cases.
|
use for whole programs, but only for small test cases.
|
||||||
@ -328,10 +329,11 @@
|
|||||||
- `--xml=XML_FILENAME Write the internal program structure, result of`
|
- `--xml=XML_FILENAME Write the internal program structure, result of`
|
||||||
optimization in XML form to given filename.
|
optimization in XML form to given filename.
|
||||||
|
|
||||||
- `--generate-c-only Generate only C source code, and do not compile it to`
|
- `--generate-c-only`
|
||||||
binary or module. This is for debugging and code
|
- 仅编译成 C 代码,不编译为可执行文件或者模块
|
||||||
coverage analysis that doesn't waste CPU. Defaults to
|
- 此选项是为了那些不想浪费 CPU 资源的 单纯为了 debug 或者 覆盖率检测的编译
|
||||||
off. Do not think you can use this directly.
|
- 不要觉得你能直接做到这样
|
||||||
|
- 默认: `禁用`
|
||||||
|
|
||||||
- `--experimental=FLAG`
|
- `--experimental=FLAG`
|
||||||
Use features declared as 'experimental'. May have no
|
Use features declared as 'experimental'. May have no
|
||||||
@ -344,16 +346,21 @@
|
|||||||
memory. For use on embedded machines. Use this in case
|
memory. For use on embedded machines. Use this in case
|
||||||
of out of memory problems. Defaults to off.
|
of out of memory problems. Defaults to off.
|
||||||
|
|
||||||
Backend C compiler choice:
|
### 后端 C 编译器选项:
|
||||||
|
|
||||||
- `--clang Enforce the use of clang. On Windows this requires a`
|
- `--clang
|
||||||
|
- 强制使用 `clang` 编译器
|
||||||
|
- 在 Windows 上需要一个可用的 Visual Studio Enforce the use of clang. On Windows this requires a`
|
||||||
working Visual Studio version to piggy back on.
|
working Visual Studio version to piggy back on.
|
||||||
Defaults to off.
|
Defaults to off.
|
||||||
|
|
||||||
- `--mingw64 Enforce the use of MinGW64 on Windows. Defaults to off`
|
- `--mingw64
|
||||||
unless MSYS2 with MinGW Python is used.
|
- 在 Windows 上强制使用 MinGW64 编译器
|
||||||
|
- 除非运行在 MSYS2 和 Mingw 编译的 Python 上
|
||||||
|
- 默认: `禁用`
|
||||||
|
|
||||||
- `--msvc=MSVC_VERSION`
|
- `--msvc=MSVC_VERSION`
|
||||||
|
- 在 Windows 上强制使用给定版本的 MSVC 编译器
|
||||||
Enforce the use of specific MSVC version on Windows.
|
Enforce the use of specific MSVC version on Windows.
|
||||||
Allowed values are e.g. "14.3" (MSVC 2022) and other
|
Allowed values are e.g. "14.3" (MSVC 2022) and other
|
||||||
MSVC version numbers, specify "list" for a list of
|
MSVC version numbers, specify "list" for a list of
|
||||||
@ -361,10 +368,13 @@
|
|||||||
latest MSVC being used if installed, otherwise MinGW64
|
latest MSVC being used if installed, otherwise MinGW64
|
||||||
is used.
|
is used.
|
||||||
|
|
||||||
- `--jobs=N Specify the allowed number of parallel C compiler`
|
- `--jobs=N
|
||||||
jobs. Defaults to the system CPU count.
|
- 指定最多可同时运行的 C 编译器数量
|
||||||
|
- 默认: 你的 CPU 线程数
|
||||||
|
|
||||||
- `--lto=choice Use link time optimizations (MSVC, gcc, clang).`
|
- `--lto=choice
|
||||||
|
- 使用 来自编译器的 链接时间优化
|
||||||
|
- Use link time optimizations (MSVC, gcc, clang).`
|
||||||
Allowed values are "yes", "no", and "auto" (when it's
|
Allowed values are "yes", "no", and "auto" (when it's
|
||||||
known to work). Defaults to "auto".
|
known to work). Defaults to "auto".
|
||||||
|
|
||||||
@ -411,7 +421,7 @@
|
|||||||
folder, but might be used in case the cache is suspect
|
folder, but might be used in case the cache is suspect
|
||||||
to cause errors or known to need an update.
|
to cause errors or known to need an update.
|
||||||
|
|
||||||
PGO compilation choices:
|
## PGO 编译选项:
|
||||||
|
|
||||||
- `--pgo Enables C level profile guided optimization (PGO), by`
|
- `--pgo Enables C level profile guided optimization (PGO), by`
|
||||||
executing a dedicated build first for a profiling run,
|
executing a dedicated build first for a profiling run,
|
||||||
@ -432,7 +442,7 @@
|
|||||||
through a script that prepares it to run. Default use
|
through a script that prepares it to run. Default use
|
||||||
created program.
|
created program.
|
||||||
|
|
||||||
Tracing features:
|
### Tracing features:
|
||||||
|
|
||||||
- `--report=REPORT_FILENAME`
|
- `--report=REPORT_FILENAME`
|
||||||
Report module, data files, compilation, plugin, etc.
|
Report module, data files, compilation, plugin, etc.
|
||||||
|
19
docs/vuepress/package.json
Normal file
19
docs/vuepress/package.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "vuepress",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"devDependencies": {
|
||||||
|
"@vuepress/client": "2.0.0-beta.60",
|
||||||
|
"vue": "^3.2.45",
|
||||||
|
"vuepress": "2.0.0-beta.60"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"docs:dev": "vuepress dev docs",
|
||||||
|
"docs:build": "vuepress build docs"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
1735
docs/vuepress/pnpm-lock.yaml
Normal file
1735
docs/vuepress/pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@ -16,8 +16,8 @@ $arg += @("--standalone")
|
|||||||
$arg += @("--output-dir=build/nuitka1")
|
$arg += @("--output-dir=build/nuitka1")
|
||||||
$arg += @("--company-name=tool-shenjack-workshop")
|
$arg += @("--company-name=tool-shenjack-workshop")
|
||||||
$arg += @("--product-name=Difficult-Rocket")
|
$arg += @("--product-name=Difficult-Rocket")
|
||||||
$arg += @("--product-version=0.6.4.1")
|
$arg += @("--product-version=$env:DR_version")
|
||||||
$arg += @("--file-version=0.0.1.0")
|
$arg += @("--file-version=$env:Build_version")
|
||||||
$arg += @("--file-description=Difficult-Rocket!")
|
$arg += @("--file-description=Difficult-Rocket!")
|
||||||
$arg += @("--windows-icon-from-ico=textures/icon.png")
|
$arg += @("--windows-icon-from-ico=textures/icon.png")
|
||||||
$arg += @("--macos-app-icon=textures/icon.png")
|
$arg += @("--macos-app-icon=textures/icon.png")
|
||||||
|
Loading…
Reference in New Issue
Block a user