[Buildroot] [PATCH 1/1] python-fastentrypoints: new package

Asaf Kahlon asafka7 at gmail.com
Mon Apr 9 19:47:24 UTC 2018


Yes, of course.

After the compilation of this package, you'll have an executable called
fastep under $(HOST_DIR)/usr/bin.
Then you can run fastep on a directory of a python package, and it'll speed
up the console_scripts declared on your setup.py.
What it really does is copying fastentrypoints,py to the directory, adding
it to MANIFEST.in, and adding an import on setup.py, which is actually a
monkey-patch.

It can be very useful on systems with limited resources where importing
pkg_resources can take a long time.
If you want, you can even take it further and write pkg-fastep.mk. Then you
can use it for the relevant python packages. It will add the needed
dependency and run fastep on the package directory.

Asaf.

On Mon, Apr 9, 2018 at 10:01 PM, Thomas Petazzoni <
thomas.petazzoni at bootlin.com> wrote:

> Hello,
>
> On Mon,  9 Apr 2018 21:04:03 +0300, Asaf Kahlon wrote:
> > host-package that is able to shorten the load time of entry_points
> declared
> > in setup.py of python packages.
> >
> > Signed-off-by: Asaf Kahlon <asafka7 at gmail.com>
>
> Thanks for this new version. Could you give some details on how you're
> using this host package ? I.e what you are doing with it exactly ?
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180409/231ac644/attachment.html>


More information about the buildroot mailing list