-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Python Support (WIP) #94
Draft
yqs112358
wants to merge
199
commits into
Tencent:feature/python
Choose a base branch
from
LiteLDev:adaptation/python
base: feature/python
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LanderlYoung
force-pushed
the
feature/python
branch
from
February 8, 2024 20:22
d5a89cc
to
d4faea7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP
概况
如题,为ScriptX完成了Python后端支持。
此PR包含:完整的Python适配、针对Python测试进行适配的UnitTest、docs中的增加的双语文档。提交的代码去除了所有的私有commit,仅包含完整的适配代码。
测试情况
Windows下使用MSVC编译,单元测试全部通过:
在Ubuntu使用GCC编译,单元测试全部通过:
运行性能还麻烦作者大大亲自测试,截图时开着好几个IDE,机子负载较大,导致单测运行时间较长
经实际运行环境测试引擎工作正常。如果有什么需要修改的还请提出,我们将继续进行修改。
TODOs
现在剩余一些TODO需要协助,这些操作我们无法自行完成
Add python backend testlib for win64 (Python 3.10.9) LanderlYoung/ScriptXTestLibs#3
这个PR上传了编译工具链自动下载的python头文件以及库文件。缺失这些会导致github actions中的单元测试无法正常编译通过。
About
Python后端适配开发者:@yqs112358 @twoone-3
Fork的仓库地址:https://github.com/LiteLDev/ScriptX