-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
调整关于Python查找相关的逻辑, 兼容 manylinux, 方便 Python 相关的 CI #5391
Comments
Title: Adjust the logic related to Python search, be compatible with manylinux, and facilitate Python-related CI |
可以来个 pr 改进下 fetch.lua |
You can send a PR to improve fetch.lua |
用 |
Use |
在 pybind11 on_load 做。fetch python 的逻辑,可以直接复制 python/fetch.lua 代码适配,也可以像直接改造 python/fetch.lua,公开接口给两个包共用,类似: xmake-repo/packages/m/mysql-build-tools/xmake.lua Lines 46 to 49 in f5f4c6f
|
你在什么场景下需要该功能?
Python whl 在 Linux 的标准打包环境是 manylinux, manylinux 故意不提供 libpython.so 和 libpython.a 以便打包出可轻松移植的 whl 1. 但是在 xmake 的 Python fetch中, 即使设置了 headeronly, 也会尝试查找链接文件, 导致无法正确在 manylinux 下找到 Python. 因此需要调整此逻辑.
同时, Python 的 C 扩展通常是通过 pybind11 完成的, 因此也要同时调整 pybind11 的逻辑.
1: https://peps.python.org/pep-0513/#libpythonx-y-so-1
描述可能的解决方案
我已经写了提交1用于解决此问题, 但是不确定这样做是否合适 , 因为我看到 CMake 是通过另一种方式解决的此问题: https://gitlab.kitware.com/cmake/cmake/-/issues/20425
1 https://github.com/myuanz/xmake-repo/commits/master/
描述你认为的候选方案
No response
其他信息
-vD
的时候, print 是被隐藏的.The text was updated successfully, but these errors were encountered: