Skip to content

Conversation

@Taoxuan-168
Copy link

1.修改setup.py文件,使得为manylinux设备编译的时候也可以自动生成whl包方便本地调试
2.修改init_files.py文件,修复修改包名称后__init__.py内导入的包名不一致出现的bug
3.修改了add_c_module.md文档,增加了一些细节
以上修改均在本地环境测试通过

1.修改setup.py文件,使得为manylinux设备编译的时候也可以自动生成whl包方便本地调试
2.修改init_files.py文件,修复修改包名称后__init__.py内导入的包名不一致出现的bug
以上修改均在本地环境测试通过
对一些细节进行补充
为Linux平台编译的时候使用当前运行的python版本而不是从文件寻找
Copy link
Member

@Neutree Neutree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改的原因是什么。。。小心改出bug哦

@Neutree
Copy link
Member

Neutree commented Jan 4, 2026

而且太多中文了,建议主要使用英文,

@Neutree
Copy link
Member

Neutree commented Jan 4, 2026

包括stub文件linux平台是不允许失败的, maixpy交叉编译的stub其实是来自linux平台编译生成的,如果linux平台失败了就意味着自动化编译期间生成的whl文件里没有stub了,
建议不要一次性改动太大,只做必要的改动

@Neutree Neutree closed this Jan 4, 2026
@Taoxuan-168
Copy link
Author

没有改很多,主要修改:1.为Linux编译的时候自动打包whl 2.修复修改whl包名称后init_files.py未重命名__init__.py内导入的包名出现的bug3.修改为Linux平台编译的时候使用当前的python版本作为目标编译版本而不是去文件中识别构建的目标版本,其余中文为ai翻译,我在本机测试通过可以正常运行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants