add more info to nuitka build
This commit is contained in:
parent
f112b654c4
commit
26d22f9e82
@ -22,7 +22,7 @@ def _add_cmd(cmd: List[str], string: Optional[Any]) -> List[str]:
|
|||||||
class CompilerHelper(Options):
|
class CompilerHelper(Options):
|
||||||
name = 'Nuitka Compiler Helper'
|
name = 'Nuitka Compiler Helper'
|
||||||
|
|
||||||
output_path: Path = Path("./build/nuitka-win")
|
output_path: Path = Path("./build/nuitka")
|
||||||
src_file: Path = Path('DR.py')
|
src_file: Path = Path('DR.py')
|
||||||
|
|
||||||
python_cmd: str = 'python'
|
python_cmd: str = 'python'
|
||||||
|
@ -9,7 +9,6 @@ import sys
|
|||||||
import time
|
import time
|
||||||
import shutil
|
import shutil
|
||||||
import tomlkit
|
import tomlkit
|
||||||
import zipfile
|
|
||||||
import platform
|
import platform
|
||||||
import traceback
|
import traceback
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -79,11 +78,13 @@ if __name__ == '__main__':
|
|||||||
if f'pyglet.{lib}.{name}' in compiler.no_follow_import:
|
if f'pyglet.{lib}.{name}' in compiler.no_follow_import:
|
||||||
compiler.no_follow_import.remove(f'pyglet.{lib}.{name}')
|
compiler.no_follow_import.remove(f'pyglet.{lib}.{name}')
|
||||||
|
|
||||||
print(compiler.as_markdown(longest=70))
|
|
||||||
|
|
||||||
if is_github:
|
if is_github:
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
pprint(compiler.option())
|
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())
|
print(compiler.gen_subprocess_cmd())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user