python-colorama: new package
PATCH 1/1 python-colorama: new package
Colorama is a simple cross-platform colored terminal text in Python.
Tested on a PowerPC e500v2 board. Host build support is also added in the package makefile, as python-jinja2, because we have third-party software that requires it (e.g. ARM mbed build-system).
--- package/Config.in | 1 + package/python-colorama/Config.in | 6 ++++++ package/python-colorama/python-colorama.hash | 3 +++ package/python-colorama/python-colorama.mk | 15 +++++++++++++++ 4 files changed, 25 insertions(+) create mode 100644 package/python-colorama/Config.in create mode 100644 package/python-colorama/python-colorama.hash create mode 100644 package/python-colorama/python-colorama.mk
package/Config.in +1 -0
@@ -597,6 +597,7 @@ menu "external python modules" source "package/python-cheetah/Config.in" source "package/python-cherrypy/Config.in" source "package/python-coherence/Config.in" + source "package/python-colorama/Config.in" source "package/python-configobj/Config.in" source "package/python-configshell-fb/Config.in" source "package/python-crc16/Config.in"
package/python-colorama/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_COLORAMA + bool "python-colorama" + help + Simple cross-platform colored terminal text in Python. + + http://pypi.python.org/pypi/colorama
package/python-colorama/python-colorama.hash new file +3 -0
@@ -0,0 +1,3 @@ +# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=a56b8dc55158a41ab3c89c4c8feb8824, sha256 locally computed +md5 a56b8dc55158a41ab3c89c4c8feb8824 colorama-0.3.3.tar.gz +sha256 eb21f2ba718fbf357afdfdf6f641ab393901c7ca8d9f37edd0bee4806ffa269c colorama-0.3.3.tar.gz
package/python-colorama/python-colorama.mk new file +15 -0
@@ -0,0 +1,15 @@ +################################################################################ +# +# python-colorama +# +################################################################################ + +PYTHON_COLORAMA_VERSION = 0.3.3 +PYTHON_COLORAMA_SOURCE = colorama-$(PYTHON_COLORAMA_VERSION).tar.gz +PYTHON_COLORAMA_SITE = https://pypi.python.org/packages/source/c/colorama +PYTHON_COLORAMA_SETUP_TYPE = setuptools +PYTHON_COLORAMA_LICENSE = BSD-3c +PYTHON_COLORAMA_LICENSE_FILES = LICENSE.txt + +$(eval $(python-package)) +$(eval $(host-python-package))
Signature · 1 line
1.9.1
PATCH 1/1 python-colorama: new package
Augusto,
Quoted 5 lines · Augusto Farina
Colorama is a simple cross-platform colored terminal text in Python.
Tested on a PowerPC e500v2 board. Host build support is also added in the package makefile, as python-jinja2, because we have third-party software that requires it (e.g. ARM mbed build-system).
As usual, I'm a little bit reluctant to add host packages that are not used by any other package in Buildroot, because it means they are never tested.
Do you intend to submit some packages that will use host-python-colorama?
Also, not your fault, but I must say it's a bit odd for a build-system to have a mandatory dependency on something that allows to colorize the terminal output :)
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 python-colorama: new package
Hi Thomas,
Quoted 5 lines · Thomas Petazzoni
Augusto,
Quoted 2 lines · Augusto Farina
Colorama is a simple cross-platform colored terminal text in Python.
Quoted 8 lines
Quoted 3 lines
Tested on a PowerPC e500v2 board. Host build support is also added in the package makefile, as python-jinja2, because we have third-party software that requires it (e.g. ARM mbed build-system).
As usual, I'm a little bit reluctant to add host packages that are not used by any other package in Buildroot, because it means they are never tested.
I've heard this :)
Quoted 3 lines
Do you intend to submit some packages that will use host-python-colorama?
At this specific moment, no. But we are analyzing the ARM mbed package, which are widely used libraries and tools for ARM microcontrollers, and makes use of host-python-colorama on its build-system.
Quoted 4 lines
Also, not your fault, but I must say it's a bit odd for a build-system to have a mandatory dependency on something that allows to colorize the terminal output :)
I agree with you. But we are trying not to keep recipes of open-source packages in our repository, and I just thought this might be useful to someone else.
Cheers,
Signature · 3 lines
Augusto Farina DATACOM / R&D - Access www.datacom.ind.br
PATCH 1/1 python-colorama: new package
Hello,
Quoted 6 lines · DATACOM - Farina
Quoted 2 lines
Do you intend to submit some packages that will use host-python-colorama?
At this specific moment, no. But we are analyzing the ARM mbed package, which are widely used libraries and tools for ARM microcontrollers, and makes use of host-python-colorama on its build-system.
But why do you use Buildroot to build something for a micro-controller? I don't really see the connection between using ARM mbed and Buildroot.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 python-colorama: new package
Hi Thomas,
Quoted 7 lines · Thomas Petazzoni
Hello,
Quoted 3 lines · DATACOM - Farina
Quoted 2 lines
Do you intend to submit some packages that will use host-python-colorama?
Quoted 7 lines
Quoted 3 lines
At this specific moment, no. But we are analyzing the ARM mbed package, which are widely used libraries and tools for ARM microcontrollers, and makes use of host-python-colorama on its build-system.
But why do you use Buildroot to build something for a micro-controller? I don't really see the connection between using ARM mbed and Buildroot.
Our boards has PowerPC/ARM/MIPS running Linux. And also has ARM microcontrollers.
So, when we build the main firmware (Linux + rootfs) with Buildroot, we also build the microcontroller firmware that goes inside the rootfs (using a secondary toolchain).
With this way, we have just one build-system (Buildroot), with everything we need integrated on it.
My apologies if it is not the Buildroot idea, but this kind of integration is facilitating our work.
Cheers,
Signature · 3 lines
Augusto Farina DATACOM / R&D - Access www.datacom.ind.br
PATCH 1/1 python-colorama: new package
Hello,
Quoted 7 lines · DATACOM - Farina
Our boards has PowerPC/ARM/MIPS running Linux. And also has ARM microcontrollers.
So, when we build the main firmware (Linux + rootfs) with Buildroot, we also build the microcontroller firmware that goes inside the rootfs (using a secondary toolchain).
Quoted 5 lines
With this way, we have just one build-system (Buildroot), with everything we need integrated on it.
My apologies if it is not the Buildroot idea, but this kind of integration is facilitating our work.
Interesting use of Buildroot, definitely! I think it makes a lot of sense to use Buildroot this way, so I understand better what you did. I'm still a bit reluctant to add host packages in Buildroot without users, but at least there is a very useful and interesting use case behind it, so I might be tempted to apply your patch with the host package included.
I'm obviously interested by the opinion of other Buildroot developers.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 python-colorama: new package
Quoted 17 lines · Thomas Petazzoni
Hello,
Quoted 7 lines · DATACOM - Farina
Our boards has PowerPC/ARM/MIPS running Linux. And also has ARM microcontrollers.
So, when we build the main firmware (Linux + rootfs) with Buildroot, we also build the microcontroller firmware that goes inside the rootfs (using a secondary toolchain).
Quoted 5 lines
With this way, we have just one build-system (Buildroot), with everything we need integrated on it.
My apologies if it is not the Buildroot idea, but this kind of integration is facilitating our work.
Quoted 8 lines
Interesting use of Buildroot, definitely! I think it makes a lot of sense to use Buildroot this way, so I understand better what you did. I'm still a bit reluctant to add host packages in Buildroot without users, but at least there is a very useful and interesting use case behind it, so I might be tempted to apply your patch with the host package included.
I'm obviously interested by the opinion of other Buildroot developers.
I'm not so inclined to include this non-buildable package. I think it's
possible to have a package/python-colorama/python-colorama.mk in BR2_EXTERNAL that includes the $(host-python-package).
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 python-colorama: new package
In reply to Augusto FarinaDear Augusto Farina,
Quoted 7 lines · Augusto Farina
Colorama is a simple cross-platform colored terminal text in Python.
Tested on a PowerPC e500v2 board. Host build support is also added in the package makefile, as python-jinja2, because we have third-party software that requires it (e.g. ARM mbed build-system).
Signed-off-by Augusto Farina <[email protected]>
So Arnout agreed with me that we don't want this host only package that is not used by any other package in Buildroot. Can you resubmit when this package gets actually used by another menuconfig-selectable package in Buildroot ?
In the mean time, I'll mark your patch as Changes Requested.
Peter: you never raised your opinion on this one, but please speak up if you don't agree with the reasoning of Arnout and myself. Thanks!
Augusto, if you still want the target side to be merged, can you resend an updated version with just the target variant?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 python-colorama: new package
Hi Thomas,
Quoted 9 lines · Thomas Petazzoni
Dear Augusto Farina,
Quoted 6 lines · Augusto Farina
Colorama is a simple cross-platform colored terminal text in Python.
Tested on a PowerPC e500v2 board. Host build support is also added in the package makefile, as python-jinja2, because we have third-party software that requires it (e.g. ARM mbed build-system).
Quoted 7 lines
Quoted 1 line
Signed-off-by Augusto Farina <[email protected]>So Arnout agreed with me that we don't want this host only package that is not used by any other package in Buildroot. Can you resubmit when this package gets actually used by another menuconfig-selectable package in Buildroot ?
No problem, we keep it local.
Quoted 7 lines
In the mean time, I'll mark your patch as Changes Requested.
Peter: you never raised your opinion on this one, but please speak up if you don't agree with the reasoning of Arnout and myself. Thanks!
Augusto, if you still want the target side to be merged, can you resend an updated version with just the target variant?
We can forget this for now, I believe that this will not add much to Buildroot.
Thanks for the feedback.
Cheers,
Signature · 8 lines
Augusto Farina DATACOM R&D - Access Rua America, 1000 - Eldorado do Sul, RS Tel.: +55 51 3933 3638 Fax.: +55 51 3933 3003 farina at datacom.ind.br www.datacom.ind.br