add more info to nuitka build

This commit is contained in:
shenjack 2023-07-01 00:51:26 +08:00
parent f112b654c4
commit 26d22f9e82
2 changed files with 5 additions and 4 deletions

View File

@ -22,7 +22,7 @@ def _add_cmd(cmd: List[str], string: Optional[Any]) -> List[str]:
class CompilerHelper(Options):
name = 'Nuitka Compiler Helper'
output_path: Path = Path("./build/nuitka-win")
output_path: Path = Path("./build/nuitka")
src_file: Path = Path('DR.py')
python_cmd: str = 'python'

View File

@ -9,7 +9,6 @@ import sys
import time
import shutil
import tomlkit
import zipfile
import platform
import traceback
import subprocess
@ -79,11 +78,13 @@ if __name__ == '__main__':
if f'pyglet.{lib}.{name}' in compiler.no_follow_import:
compiler.no_follow_import.remove(f'pyglet.{lib}.{name}')
print(compiler.as_markdown(longest=70))
if is_github:
from pprint import pprint
pprint(compiler.option())
else:
compiler.output_path = Path(f'./build/nuitka-{platform.system().lower()}')
print(compiler.as_markdown(longest=70))
print(compiler.gen_subprocess_cmd())