buildroot_scanpypi

This is a porting of buildroot's scanpypi for Python 3, so that Python3 packages from PyPI can be easily installed into a buildroot file system.

see discussion here: https://stackoverflow.com/questions/48867457/adding-python3-packages-to-buildroot

Usage:

  1. Copy scanpypi3 into <buildroot>/support/scripts
  2. Use it to install packages

Example:

  • ./support/scripts/scanpypi3 websocket-server -o package

Install directly from GitHub:

Sometimes the PyPI version is not up-to-date, so I have added a way to install from github:

  • ./support/scripts/scanpypi3 websocket-server -o package -u https://github.com/Pithikos/python-websocket-server/archive/master.tar.gz
  • ./support/scripts/scanpypi3 websockets -o package -u https://github.com/aaugustin/websockets/archive/master.tar.gz

Note: the URL should be constructed from https://github.com + /owner-name + /repo-name + /archive/master.tar.gz

Important Note:

Although I didn't see anything about it in the docs, it seems that in order to have the new package appear in the menu for external Python packages (Target packages -> interpreter languages -> External Python modules), the file package/Config.in should be added with an appropriate line. A rumor for this is appearing here: http://www.armadeus.org/wiki/index.php?title=Buildroot_Packages

For the above components, I was adding this:

menu "External python modules"
+	source "package/python-websocket-server/Config.in"
+	source "package/python-websockets/Config.in"

License:

This code is owned by the buildroot project: https://buildroot.org