一句话:提出基于知识推断 Python 程序对解释器与系统库的环境依赖,补全第三方包依赖分析。
现有 Python 依赖推断主要针对第三方包,忽视了解释器和系统库。实证研究显示,34% 的程序仅兼容特定 Python 解释器版本,24% 的程序依赖特定系统库;缺失这些依赖或违反版本约束会导致构建失败与运行时错误。本文提出基于知识的环境依赖推断方法,旨在识别 Python 程序所需的解释器版本与系统库依赖,从而补全第三方包之外的关键依赖信息,避免环境不兼容问题。
Besides third-party packages, the Python interpreter and system libraries are also critical dependencies of a Python program. In our empirical study, 34% programs are only compatible with specific Python interpreter versions, and 24% programs require specific system libraries. However, existing techniques mainly focus on inferring third-party package dependencies. Therefore, they can lack other necessary dependencies and violate version constraints, thus resulting in program build failures and runtime errors.
DOI 原文 ·
@inproceedings{paperbot6908,
title = {Knowledge-based environment dependency inference for python programs},
author = {Hongjie Ye and Wei Chen and Wensheng Dou and Guoquan Wu and Jun Wei},
booktitle = {ICSE},
year = {2022},
doi = {10.1145/3510003.3510127}
}