-
Notifications
You must be signed in to change notification settings - Fork 5.9k
【Hackathon 9th No.109】[CppExtension] Support build Custom OP in setuptools 80+ and support install extension via pip install . --no-build-isolation
#76008
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
Merged
+294
−40
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a3bb2d7
[CppExtension] 添加InstallCommand以支持setuptools>=80的共享库重命名和安装路径优化
megemini 3ed2fdb
[CppExtension] 优化InstallCommand以规范安装布局,确保单入口包结构并兼容遗留测试
megemini 0662252
[CppExtension] 修复InstallCommand中的代码格式问题并优化字符串拼接逻辑
megemini e10f18b
[CppExtension] 确保pip兼容性:添加metadata_version并优化egg-info清理逻辑
megemini 872e846
[CppExtension] 更新测试用例以匹配新的egg生成数量预期
megemini 3bfa9c3
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
megemini 055d1b0
[CppExtension] 添加 setuptools 版本判断逻辑并优化异常捕获
megemini 0655f0f
[CppExtension] 修改测试用例适配setuptools版本差异
megemini 99a4611
[CppExtension] 移除packaging依赖并简化setuptools版本判断逻辑
megemini 2e80847
[CppExtension] 移除packaging依赖并简化setuptools版本判断逻辑
megemini 9a94332
[CppExtension] 添加wheel支持并优化安装布局处理
megemini 05a4114
[CppExtension] 优化导入依赖并调整模块结构
megemini 6305767
[CppExtension] 简化安装逻辑
megemini fff063e
[CppExtension] 统一变量命名从custom_egg_path改为custom_install_path
megemini 6103552
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
megemini 545b0fa
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
megemini 1dca083
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
megemini c3fc22b
[CppExtension] 移除废弃的bootstrap_context和相关代码
megemini ba9349b
[CppExtension] 仅在未指定时设置install_lib等路径
megemini c1ebffc
[CppExtension] 修复扩展模块名称处理逻辑,支持多级包路径
megemini c74e819
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
megemini 8e49d98
[CppExtension] 简化扩展模块名称获取逻辑,移除冗余代码
megemini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
啊 好快的删,没事我周一问问其他人再确定,反正就是一个 revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
昨天忘记说了,昨天和 @zyfncg 讨论的结论是先不为 79-、80+ 单独添加兼容性逻辑,单独解决一下 FD 里的问题就可以了,解决完 FD 问题后如果其他场景有问题反馈再为 79-、80+ 单独添加兼容性逻辑
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有个地方没想明白,fd 为啥要把安装好的包 copy 到 fd 目录里面?方便后续一并卸载?应该也不是啊,它用的是 cp 而不是 mv ... ...
fd 如果要改的话,把现在生成的两个目录一起 copy 过去应该就可以了 ~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
按我理解是,这些自定义算子
fastdeploy_ops只是中间产物(仅算子实现),最终会被打包到fastdeploy包(含 Python 实现)里进行发布There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
相当于,将这些算子统一放到 fd 的命名空间中进行管理,而不是作为一个个单独的包?
OK ~ 那咱们这里还需要做啥?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个?现在是需要咱们这里修改兼容 fd 目前的实现方式?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不一定是框架兼容,可以修改 FD 的 build 脚本
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯 ~ 我的意思也是,咱们这个 pr 应该不需要修改,最好是修改 fd 那边的脚本 ~ 那我给 fd 那边提个 pr ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,如果确定不是这个 PR 导致的 bug,可以提 PR 改动下,不过那边的 PR 应该兼容两种方式,因为不能保证所有人都用 develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--install-lib之前是有问题的,前两天最新的 commit ba9349b 已经改了 ~fd 那边我这两天提个 pr 改一下 ~