We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 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
The text was updated successfully, but these errors were encountered:
Bot detected the issue body's language is not English, translate it automatically.
Title: Adjust the logic related to Python search, be compatible with manylinux, and facilitate Python-related CI
Sorry, something went wrong.
可以来个 pr 改进下 fetch.lua
You can send a PR to improve fetch.lua
No branches or pull requests
你在什么场景下需要该功能?
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: