Buildroot fork.
Go to file
Thomas De Schampheleire e43c050944 utils/scanpypi: allow installation of commands without 'main' method
In case the setup.py file of a python package does not directly call the
'setup' method, utils/scanpypi was hoping there be a 'main' function which
would do the work, normally called via a construct like:

    if __name__ == '__main__':
        main()

However, this construct is nonstandard, and there are packages in PyPI which
call 'setup()' directly from the 'if' statement, without a main() method.

But scanpypi does not actually need to make such assumption: when loading
the module, it can decide the name to be '__main__', just as if setup.py
would be loaded interactively.

Additionally, remove some logic seemingly related to the previous trick of
calling 'main'. There should not be a problem in keeping already loaded
modules in sys.modules, as this is the purpose of sys.modules.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-07-25 23:43:13 +02:00
arch arch: add BR2_ARCH_NEEDS_GCC_AT_LEAST_11 2021-06-20 18:46:51 +02:00
board board/raspberrypi: use kernel Bluetooth mode 2021-07-20 21:53:50 +02:00
boot package: use the generic _HELP_CMDS for kconfig-based packages 2021-07-25 15:20:24 +02:00
configs board/mx6cubox: Switch to extlinux.conf 2021-07-20 21:27:29 +02:00
docs package/pkg-kconfig: generate generic help 2021-07-25 15:20:24 +02:00
fs fs/erofs: add big pcluster support 2021-07-19 22:34:21 +02:00
linux package: use the generic _HELP_CMDS for kconfig-based packages 2021-07-25 15:20:24 +02:00
package package/haveged: bump version to 1.9.14 2021-07-25 23:36:58 +02:00
support Makefile: Parallelize glibc locale generation 2021-07-25 16:46:30 +02:00
system system: support br2-external init systems 2020-10-14 22:48:42 +02:00
toolchain toolchain: mark sysroot as 'safe' path for gdb auto-load 2021-07-25 23:19:20 +02:00
utils utils/scanpypi: allow installation of commands without 'main' method 2021-07-25 23:43:13 +02:00
.defconfig arch: remove support for sh64 2016-09-08 22:15:15 +02:00
.flake8 Revert ".flake8: fix check for 80/132 columns" 2021-01-02 17:38:20 +01:00
.gitignore update gitignore 2013-05-04 12:41:55 +02:00
.gitlab-ci.yml gitlab-ci: update the image version 2020-08-15 09:47:00 +02:00
CHANGES Update for 2021.02.3 2021-06-13 10:42:59 +02:00
Config.in Config.in: disable PIC/PIE for microblaze 2021-07-25 15:48:13 +02:00
Config.in.legacy package/spidermonkey: drop package 2021-07-24 23:29:22 +02:00
COPYING COPYING: add exception about patch licensing 2016-02-26 19:50:13 +01:00
DEVELOPERS DEVELOPERS: Add myself as rpcbind maintainer 2021-07-25 23:25:17 +02:00
Makefile Makefile: Parallelize glibc locale generation 2021-07-25 16:46:30 +02:00
Makefile.legacy Remove BR2_DEPRECATED 2016-10-15 23:14:45 +02:00
README docs: move the IRC channel away from Freenode 2021-05-29 22:16:23 +02:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on OFTC IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches