compat nuitka
This commit is contained in:
parent
a520bc587b
commit
27e782f293
@ -110,7 +110,7 @@ include-data-dir = [
|
||||
['./config', './config'],
|
||||
['./assets', './assets']
|
||||
]
|
||||
include-packages = ['Difficult_Rocket.api']
|
||||
include-package = ['Difficult_Rocket.api']
|
||||
# DR.api 没有直接 import, 所以需要手动添加
|
||||
|
||||
disable-plugin = ['pyqt5', 'tk-inter']
|
@ -28,13 +28,13 @@ def gen_pyglet_no_follow_import() -> list:
|
||||
]
|
||||
no_follow_import += [
|
||||
f"pyglet.canvas.{x}"
|
||||
for x in [
|
||||
for x in (
|
||||
"win32",
|
||||
"xlib",
|
||||
"xlib_vidmoderstore",
|
||||
"cocoa",
|
||||
"headless",
|
||||
]
|
||||
)
|
||||
]
|
||||
no_follow_import += [
|
||||
f"pyglet.gl.{x}" for x in ["win32", "xlib", "cocoa", "headless"]
|
||||
@ -67,7 +67,7 @@ def main(config: raw_config_type) -> nuitka_config_type:
|
||||
config['macos-app-version'] = str(sdk_version)
|
||||
|
||||
config['nofollow-import-to'] += gen_pyglet_no_follow_import()
|
||||
config['output-dir'] = './build/nuitka-' + platform.system().lower()
|
||||
|
||||
print('done', config)
|
||||
return config
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user