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