我使用waf(https://waf.io/)作为我的构建系统,
由于我的客户端不想安装python,所以我想尝试将它(python+waf+wscript)转换为exe文件,
首先我试着使用pyinstaller,
pyinstaller.exe -F waf它给出了如下错误:
D:\CX\wafexample\1_basic\15_Task_rule_exe>waf.exe
Traceback (most recent call last):
File "waf", line 162, in
wafdir = find_lib()
File "waf", line 159, in find_lib
unpack_wafdir(dir, src)
File "waf", line 59, in unpack_wafdir
f = open(src,'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\XIA~1.CHE\AppData\Local\Temp\_MEI158042\waf.py'
[11540] Failed to execute script 'waf' due to unhandled exception!然后我试一试努伊特卡,它给出如下:
>waf.cmd configure build
Waf: Run from a folder containing a 'wscript' file (or try -h for the generic options)这意味着nuitka将python+waf转换为exe,但不使用wscript。
任何人都可以分享如何将python+waf+wscript转换为build.exe吗?然后我就可以用
build.exe configure build 去建造一个项目?
发布于 2022-04-11 08:13:52
我认识waf但不是努伊特卡。只要浏览一下文档,似乎就有一个选项可以包含数据文件:--include-data-file。我认为这是要走的路:)
祝好运!
https://stackoverflow.com/questions/71625215
复制相似问题