python-fastentrypoints: new package
PATCH 1/1 python-fastentrypoints: new package
host-package that is able to shorten the load time of entry_points declared in setup.py of python packages.
--- DEVELOPERS | 1 + package/Config.in.host | 1 + package/python-fastentrypoints/Config.in.host | 6 ++++++ .../python-fastentrypoints.hash | 4 ++++ .../python-fastentrypoints.mk | 14 ++++++++++++++ 5 files changed, 26 insertions(+) create mode 100644 package/python-fastentrypoints/Config.in.host create mode 100644 package/python-fastentrypoints/python-fastentrypoints.hash create mode 100644 package/python-fastentrypoints/python-fastentrypoints.mk
DEVELOPERS +1 -0
@@ -189,6 +189,7 @@ F: package/sqlcipher/ F: package/stress/ N: Asaf Kahlon <[email protected]> +F: package/python-fastentrypoints/ F: package/python-jsonmodels/ F: package/python-yieldfrom/
package/Config.in.host +1 -0
@@ -42,6 +42,7 @@ menu "Host utilities" source "package/pkgconf/Config.in.host" source "package/pru-software-support/Config.in.host" source "package/pwgen/Config.in.host" + source "package/python-fastentrypoints/Config.in.host" source "package/python-lxml/Config.in.host" source "package/python-six/Config.in.host" source "package/python-xlrd/Config.in.host"
package/python-fastentrypoints/Config.in.host new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_HOST_PYTHON_FASTENTRYPOINTS + bool "host python-fastentrypoints" + help + Makes entry_points specified in setup.py load more quickly. + + https://github.com/ninjaaron/fast-entry_points
package/python-fastentrypoints/python-fastentrypoints.hash new file +4 -0
@@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/fastentrypoints/json, sha256 locally computed +md5 9bd2a34697eb8279d87e7b927f4f7e85 fastentrypoints-0.10.tar.gz +sha256 ed418146ed87230694ec2d8890b9b3e2967e95d857e5ce933cafecb1067cca82 fastentrypoints-0.10.tar.gz +sha256 2da210da31c033faa270503884a3ac9058874543e6fdd0b094000720bf2ffb66 fastentrypoints.py
package/python-fastentrypoints/python-fastentrypoints.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# python-fastentrypoints +# +################################################################################ + +PYTHON_FASTENTRYPOINTS_VERSION = 0.10 +PYTHON_FASTENTRYPOINTS_SOURCE = fastentrypoints-$(PYTHON_FASTENTRYPOINTS_VERSION).tar.gz +PYTHON_FASTENTRYPOINTS_SITE = https://pypi.python.org/packages/e8/c8/c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907 +PYTHON_FASTENTRYPOINTS_SETUP_TYPE = setuptools +PYTHON_FASTENTRYPOINTS_LICENSE = BSD-2-Clause +PYTHON_FASTENTRYPOINTS_LICENSE_FILES = fastentrypoints.py + +$(eval $(host-python-package))
Signature · 1 line
2.17.0
PATCH 1/1 python-fastentrypoints: new package
Hello,
Quoted 4 lines · Asaf Kahlon
host-package that is able to shorten the load time of
entry_pointsdeclared insetup.pyof python packages.Signed-off-by Asaf Kahlon <[email protected]>
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
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 python-fastentrypoints: new package
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.
Quoted 12 lines · Thomas Petazzoni
Hello,
Quoted 1 line · Asaf Kahlon
host-package that is able to shorten the load time of
entry_pointsdeclared
Quoted 3 lines
in
setup.pyof python packages.Signed-off-by Asaf Kahlon <[email protected]>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 ?
Quoted 8 lines
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>
PATCH 1/1 python-fastentrypoints: new package
Hello,
Is there anything new with my patch? Should I add/change something?
Thanks,
Asaf.
Quoted 16 lines · Asaf Kahlon
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 theconsole_scriptsdeclared on yoursetup.py.
What it really does is copying fastentrypoints,py to the directory, adding it to MANIFEST.in, and adding an import onsetup.py, which is actually a monkey-patch.It can be very useful on systems with limited resources where importing
pkg_resourcescan 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.
Quoted 27 lines
Asaf.
Quoted 20 lines · Thomas Petazzoni
Hello,
Quoted 1 line · Asaf Kahlon
host-package that is able to shorten the load time of
entry_pointsdeclared
Quoted 3 lines
in
setup.pyof python packages.Signed-off-by Asaf Kahlon <[email protected]>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/20180410/d91ba32e/attachment.html>
PATCH 1/1 python-fastentrypoints: new package
Hello,
Quoted 1 line · Asaf Kahlon
Is there anything new with my patch? Should I add/change something?
I'd like to hear from Yegor about this patch. Yegor, could you comment on this patch ?
Thanks!!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 python-fastentrypoints: new package
Quoted 8 lines · Thomas Petazzoni
Hello,
Quoted 1 line · Asaf Kahlon
Is there anything new with my patch? Should I add/change something?
I'd like to hear from Yegor about this patch. Yegor, could you comment on this patch ?
I'm OK with this patch. This package could be helpful for the python-crossbar testing as it takes ages to start crossbar script.
Yegor
PATCH 1/1 python-fastentrypoints: new package
ping
Quoted 11 lines · Yegor Yefremov
Quoted 8 lines · Thomas Petazzoni
Hello,
Quoted 1 line · Asaf Kahlon
Is there anything new with my patch? Should I add/change something?
I'd like to hear from Yegor about this patch. Yegor, could you comment on this patch ?
Quoted 7 lines
I'm OK with this patch. This package could be helpful for the python-crossbar testing as it takes ages to start crossbar script.
Reviewed-by Yegor Yefremov <[email protected]>Yegor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180714/40f8bd4f/attachment.html>
Thomas Petazzoni
AppliedPATCH 1/1 python-fastentrypoints: new package
In reply to Asaf KahlonHello,
Quoted 4 lines · Asaf Kahlon
host-package that is able to shorten the load time of
entry_pointsdeclared insetup.pyof python packages.Signed-off-by Asaf Kahlon <[email protected]>
Quoted 10 lines
--- DEVELOPERS | 1 + package/Config.in.host | 1 + package/python-fastentrypoints/Config.in.host | 6 ++++++ .../python-fastentrypoints.hash | 4 ++++ .../python-fastentrypoints.mk | 14 ++++++++++++++ 5 files changed, 26 insertions(+) create mode 100644 package/python-fastentrypoints/Config.in.host create mode 100644 package/python-fastentrypoints/python-fastentrypoints.hash create mode 100644 package/python-fastentrypoints/python-fastentrypoints.mk
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com