chore: 环境包依赖收敛到 requirements.txt,清理旧插件目录与 _pack.py
- build-python-env.ps1:白名单只留包名,版本统一从仓库根 requirements.txt 解析;-FromVenv 打包前加版本守卫校验 .venv 一致性,支持 -ShowDeps 只打印解析结果 - 桌面端发版SOP 同步新流程与历史坑(1.1.9 环境包、禁止用 -FromVenv 打补丁包) - requirements.txt 补 pycryptodome 3.24.0;package-lock 版本对齐 1.10.8 - 删除已废弃的插件级 _pack.py(统一走 tools/agent_cli.py 打包)与旧英文目录 plugins/xq0077(已由 XQ0077 携程数据导出 取代)
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
pt DistutilsExecError as msg:
|
||||
raise CompileError(msg)
|
||||
continue
|
||||
elif ext in self._mc_extensions:
|
||||
# Compile .MC to .RC file to .RES file.
|
||||
# * '-h dir' specifies the directory for the
|
||||
# generated include file
|
||||
# * '-r dir' specifies the target directory of the
|
||||
# generated RC file and the binary message resource
|
||||
# it includes
|
||||
#
|
||||
# For now (since there are no options to change this),
|
||||
# we use the source-directory for the include file and
|
||||
# the build directory for the RC file and message
|
||||
# resources. This works at least for win32all.
|
||||
h_dir = os.path.dirname(src)
|
||||
rc_dir = os.path.dirname(obj)
|
||||
try:
|
||||
# first compile .MC to .RC and .H file
|
||||
self.spawn([self.mc, '-h', h_dir, '-r', rc_dir, src])
|
||||
base, _ = os.path.splitext(os.path.basename(src))
|
||||
rc_file = os.path.join(rc_dir, base + '.rc')
|
||||
# then compile .RC to .RES file
|
||||
self.spawn([self.rc, "/fo" + obj, rc_file])
|
||||
|
||||
except DistutilsExecError as msg:
|
||||
raise CompileError(msg)
|
||||
continue
|
||||
else:
|
||||
# how to handle this file?
|
||||
raise CompileError(f"Don't know how to compile {src} to {obj}")
|
||||
|
||||
args = [self.cc] + compile_opts + pp_opts
|
||||
if add_cpp_opts:
|
||||
args.append('/EHsc')
|
||||
args.append(input_opt)
|
||||
args.append("/Fo" + obj)
|
||||
args.extend(extra_postargs)
|
||||
|
||||
try:
|
||||
self.spawn
|
||||
Binary file not shown.
Reference in New Issue
Block a user