niess / python-appimage

AppImage distributions of Python
https://python-appimage.readthedocs.io/en/latest/
GNU General Public License v3.0
170 stars 24 forks source link

_sysconfigdata_m_linux_{{arch}}-linux-gnu.py needs to be relocated #63

Closed pupil-wang closed 1 year ago

pupil-wang commented 1 year ago

This maybe a bug. I found that some directories in the "_sysconfigdata_m_linux_x86_64-linux-gnu.py" file need to be relocated, such as 'INCLUDEDIR', 'INCLDIRSTOMAKE', etc. When I use pip to install a third-party library, if there is no wheel, pip will try to use gcc to compile, but the include path is wrong, which will cause 'xxxx.h' (such as pyconfig.h) not to be found.This caused the installation to fail. dc66d5c4-fe12-40de-939b-76e117510f56

下载 thanks in advance.

niess commented 1 year ago

Hello @ai-roboter-1,

Thank you for reporting this.

Actually, pip installing from source distributions is out of the scope of python-appimage. Only binary wheels are supported. The point is that it would be duplicated work. Building a Python package for an AppImage faces the same issues than building a binary wheel. Thus, I am suggesting that application / package developers rather build a binary wheel directly, that they could distribute over PyPI, for example. Then, it should be straightforward to bundle the package into an AppImage.

Thus, no offense, but I am closing this issue :)