python-setuptools: bumped version to 0.8
PATCH 1/3 python-setuptools: bumped version to 0.8
--- package/python-setuptools/python-setuptools.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
package/python-setuptools/python-setuptools.mk +3 -3
@@ -9,9 +9,9 @@ # switch back to it. # See http://pypi.python.org/packages/source/s/setuptools -PYTHON_SETUPTOOLS_VERSION = 0.6.36 -PYTHON_SETUPTOOLS_SOURCE = distribute-$(PYTHON_SETUPTOOLS_VERSION).tar.gz -PYTHON_SETUPTOOLS_SITE = http://pypi.python.org/packages/source/d/distribute +PYTHON_SETUPTOOLS_VERSION = 0.8 +PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON_SETUPTOOLS_VERSION).tar.gz +PYTHON_SETUPTOOLS_SITE = http://pypi.python.org/packages/source/s/setuptools PYTHON_SETUPTOOLS_DEPENDENCIES = python define HOST_PYTHON_SETUPTOOLS_BUILD_CMDS
Signature · 1 line
1.8.1.2
PATCH 2/3 python: added hidden openssl option to host python
used by python-pip to use https to download packages
--- package/python/Config.in | 6 ++++++ package/python/python.mk | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-)
package/python/Config.in +6 -0
@@ -101,6 +101,12 @@ config BR2_PACKAGE_PYTHON_HASHLIB help hashlib support in Python +config BR2_HOST_PYTHON_SSL_SUPPORT + bool + help + Includes ssl support in host python build. + This is disabled by default to reduce build time. + endmenu endif
package/python/python.mk +9 -2
@@ -31,8 +31,11 @@ HOST_PYTHON_CONF_OPT += \ --disable-gdbm \ --disable-bsddb \ --disable-test-modules \ - --disable-bz2 \ - --disable-ssl + --disable-bz2 + +ifneq ($(BR2_HOST_PYTHON_SSL_SUPPORT), y) +HOST_PYTHON_CONF_OPT += --disable-ssl +endif HOST_PYTHON_MAKE_ENV = \ PYTHON_MODULES_INCLUDE=$(HOST_DIR)/usr/include \
@@ -51,6 +54,10 @@ HOST_PYTHON_MAKE = $(MAKE1) PYTHON_DEPENDENCIES = host-python libffi HOST_PYTHON_DEPENDENCIES = host-expat host-zlib + +ifeq ($(BR2_HOST_PYTHON_SSL_SUPPORT), y) +HOST_PYTHON_DEPENDENCIES += host-openssl +endif PYTHON_INSTALL_STAGING = YES
Signature · 1 line
1.8.1.2
PATCH 3/3 python-pip: new package
In reply to Rohan Fletcherpip is a package manager for python that downloads packages from https://pypi.python.org/
--- package/Config.in | 1 + package/python-pip/Config.in | 22 ++++++++++++++++ package/python-pip/python-pip.mk | 54 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 package/python-pip/Config.in create mode 100644 package/python-pip/python-pip.mk
package/Config.in +1 -0
@@ -360,6 +360,7 @@ source "package/python-pyparsing/Config.in" source "package/python-serial/Config.in" source "package/python-setuptools/Config.in" source "package/python-thrift/Config.in" +source "package/python-pip/Config.in" endmenu endif source "package/python3/Config.in"
package/python-pip/Config.in new file +22 -0
@@ -0,0 +1,22 @@ +config BR2_PACKAGE_PYTHON_PIP + bool "python-pip" + select BR2_HOST_PYTHON_SSL_SUPPORT + help + A tool for installing and managing Python packages. + + http://www.pip-installer.org + +if BR2_PACKAGE_PYTHON_PIP + +config BR2_PACKAGE_PYTHON_PIP_MODULES_ADDITIONAL + string "Additional modules" + help + List of space-separated python modules to install via pip. + See 'pip help install' for available installation methods. + For repeatable builds, download and save tgz files or clone + git repos for the components you care about. + + Example: module-name module-name==1.3.4 /my/module/mymodule.tgz + git://github.com/someuser/somemodule.git#v1.2 + +endif
package/python-pip/python-pip.mk new file +54 -0
54 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH 1/3 python-setuptools: bumped version to 0.8
In reply to Rohan FletcherDear Rohan Fletcher,
Quoted 5 lines · Rohan Fletcher
Signed-off-by Rohan Fletcher <[email protected]>--- package/python-setuptools/python-setuptools.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
I have integrated this patch (after adjusting it to bump to the latest setuptools version) into a patch series that I posted at:
http://patchwork.ozlabs.org/patch/260435/
However, regarding your patches 2/3 and 3/3, we discussed during the Buildroot Developers Meeting, and the general opinion is that we don't really like tools such as "pip", because they completely circumvent the Buildroot logic, which has a number of drawbacks:
* It does not take care of native dependencies, and quite a few Python modules have such dependencies.
* It does not go through the Buildroot download infrastructure, which means that "make external-deps", "make source" do not work for the Python modules downloaded by pip.
* It does not integrate with the Buildroot licensing infrastructure, which makes it more complicated to maintain an up-to-date list of the components installed in the generated system.
For Perl, Fran?ois Perrad has written a script that given a Perl CPAN package creates all the necessary Buildroot packages. Such an approach was accepted by the Buildroot developers, and maybe we should look at having something similar for Python modules.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/3 python-setuptools: bumped version to 0.8
Rohan, all,
Quoted 4 lines · Thomas Petazzoni
For Perl, Fran?ois Perrad has written a script that given a Perl CPAN package creates all the necessary Buildroot packages. Such an approach was accepted by the Buildroot developers, and maybe we should look at having something similar for Python modules.
I just tried this idea, see the attached (ugly) script.
Unfortunately, there are quite a few limitations:
- The script is currently not able to guess the <pkg>_SETUP_TYPE, i.e whether the package should be built with distutils or setuptools.
- The Pypi informations seem to very limited. A number of packages don't even give the URL of their tarball, the licensing informations are incomplete, there is no reference to the file containing the license text, etc.
If anyone wants to pursue this experimentation, feel free to pick up the script and improve it.
Best regards,
Thomas
Signature · 10 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: pypi-gen-packages Type: application/octet-stream Size: 3380 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140213/f94dc71b/attachment.obj>