I am trying to install a package from PyPi upolygon
on my Buildroot based aarch64 GNU/Linux
embedded device. But while installing pip is creating the wheel (.whl)
file for the package. Since there is no compiler on the target (Buildroot will not include any compiler in the target image), building wheel for upolygon
is failing.
pip install upolygon --no-cache-dir
Building wheels for collected packages: upolygon
Building wheel for upolygon (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for upolygon (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-310
creating build/lib.linux-aarch64-cpython-310/upolygon
copying upolygon/__init__.py -> build/lib.linux-aarch64-cpython-310/upolygon
running build_ext
building 'draw_polygon' extension
creating build/temp.linux-aarch64-cpython-310
creating build/temp.linux-aarch64-cpython-310/upolygon
/home/buildroot/../per-package/python3/host/bin/aarch64-linux-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -g0 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.10 -c upolygon/draw_polygon.c -o build/temp.linux-aarch64-cpython-310/upolygon/draw_polygon.o -O3 -Wall
error: command '/home/buildroot/../per-package/python3/host/bin/aarch64-linux-gcc' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for upolygon
Failed to build upolygon
ERROR: Could not build wheels for upolygon, which is required to install pyproject.toml-based projects
python3 version: Python 3.10.4
pip3 version: pip 23.2.1
Can anyone please let me know how I can disable pip from building wheel for the package?
P.S: please let me know if any info is missing