| Summary: | scanpypi doesn't work with the pyinstaller module | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Kevin <kr886q> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | buildroot, kr886q, yann.morin.1998 |
| Priority: | P5 | ||
| Version: | 2021.02.6 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Kevin
2021-11-04 14:33:50 UTC
scanpypi is not there to install a Python package, it is a script to help create a new Buildroot package for a Python module. First of all, you should not use Buildroot as root, nor scanpypi itself. Secondly, I'm not sure how pyinstaller can be useful in the context of Buildroot. According to its description, "PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules.". I don't see how having pyinstaller available on the target system is going to be of any use. I started down this rabbit hole when trying to create a executable(written in python) to run on a target device (aarch64) with uclibc (basic busybox). I was able to virtualize the target arch with docker/buildx but could not find a suitable image that had uclibc, gcc, python, and other needed things to cross compile. I then tried to use buildroot (running in ubuntu container) to create an image and run in docker but ran into some trouble and decided to pivot. I discovered that the Rpi3 has the same chip (cortex A53) as my target device. So I used buildroot to create an image and flash it to the Rpi3. Now I have the correct toolchain and everything I need EXCEPT pyinstaller, to cross compile. Due to certain restrictions I am unable to cross compile on the target device. also this is my first experience going deeper into linux than just the basic terminal commands, so my apologies. I have also tried to install pyinstaller with pip on the rpi, but i get an error So after days of fiddling and multiple build I finally figured out that there is no GCC on the target... are there any unsanctioned work arounds? The fact that wheel (and pyinstaller) don't work with scanpypi is a duplicate of https://bugs.buildroot.org/show_bug.cgi?id=13321 |