From 91acbc490c6020195a754e16732c4366a2259f3e Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 20 Sep 2023 00:20:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/utils/nuitka.py | 3 +++ requirement-build.txt | 2 +- requirement-dev.txt | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/utils/nuitka.py b/libs/utils/nuitka.py index 999dc7c..c17e199 100644 --- a/libs/utils/nuitka.py +++ b/libs/utils/nuitka.py @@ -73,7 +73,9 @@ class CompilerHelper(Options): use_clang: bool = True # --clang use_msvc: bool = True # --msvc=latest use_mingw: bool = False # --mingw64 + onefile: bool = False # --onefile + onefile_tempdir: Optional[str] = '' # --onefile-tempdir-spec= standalone: bool = True # --standalone use_ccache: bool = True # not --disable-ccache enable_console: bool = True # --enable-console / --disable-console @@ -182,6 +184,7 @@ class CompilerHelper(Options): cmd_list += format_cmd('--mingw64' if self.use_mingw else None) cmd_list += format_cmd('--standalone' if self.standalone else None) cmd_list += format_cmd('--onefile' if self.onefile else None) + cmd_list += format_cmd('--onefile-tempdir-spec=', self.onefile_tempdir, self.onefile_tempdir) cmd_list += format_cmd('--disable-ccache' if not self.use_ccache else None) cmd_list += format_cmd('--show-progress' if self.show_progress else None) diff --git a/requirement-build.txt b/requirement-build.txt index 582709b..da96f52 100644 --- a/requirement-build.txt +++ b/requirement-build.txt @@ -18,7 +18,7 @@ defusedxml >= 0.7.1 objprint >= 0.2.2 # for compile -nuitka >= 1.8.1 +nuitka >= 1.8.2 ordered-set >= 4.1.0 imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" wheel >= 0.40.0 diff --git a/requirement-dev.txt b/requirement-dev.txt index eb90928..eb58a12 100644 --- a/requirement-dev.txt +++ b/requirement-dev.txt @@ -21,7 +21,7 @@ viztracer >= 0.15.6; platform_python_implementation != "PyPy" vizplugins >= 0.1.3; platform_python_implementation != "PyPy" # for compile -nuitka >= 1.8.1 +nuitka >= 1.8.2 ordered-set >= 4.1.0 imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" wheel >= 0.40.0