* [Buildroot] [PATCH] docs/manual: add "python-package CFFI backend" section
@ 2016-02-22 9:20 yegorslists at googlemail.com
2016-02-23 20:07 ` Arnout Vandecappelle
0 siblings, 1 reply; 3+ messages in thread
From: yegorslists at googlemail.com @ 2016-02-22 9:20 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
docs/manual/adding-packages-python.txt | 36 ++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/docs/manual/adding-packages-python.txt b/docs/manual/adding-packages-python.txt
index 588dbf8..3278998 100644
--- a/docs/manual/adding-packages-python.txt
+++ b/docs/manual/adding-packages-python.txt
@@ -160,3 +160,39 @@ possible to customize what is done in any particular step:
+PYTHON_FOO_BUILD_CMDS+ variable, it will be used instead of the
default Python one. However, using this method should be restricted
to very specific cases. Do not use it in the general case.
+
+[[python-package-cffi-backend]]
+
+==== +python-package+ CFFI backend
+
+C Foreign Function Interface for Python (CFFI) provides a convenient and
+reliable way to call compiled C code from Python using interface declarations
+written in C. Python packages relying on this backend can be identified by
+appearance of +cffi+ dependency in an +install_requires+ field of their
++setup.py+ file.
+
+Such a package needs +python-cffi+ as a runtime dependency in order to import
+compiled C library wrapper on a target and +host-python-cffi+ as a build-time
+dependency in order to cross-compile the C wrapper. You'll need to add following
+code to you package's +Config.in+ and +*.mk+ files respectively:
+
+
+------------------------
+config BR2_PACKAGE_PYTHON_FOO
+ bool "python-foo"
+ select BR2_PACKAGE_PYTHON_CFFI # runtime
+------------------------
+
+------------------------
+################################################################################
+#
+# python-foo
+#
+################################################################################
+
+...
+
+PYTHON_FOO_DEPENDENCIES = host-python-cffi
+
+$(eval $(python-package))
+------------------------
--
2.7.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] docs/manual: add "python-package CFFI backend" section
2016-02-22 9:20 [Buildroot] [PATCH] docs/manual: add "python-package CFFI backend" section yegorslists at googlemail.com
@ 2016-02-23 20:07 ` Arnout Vandecappelle
2016-02-24 14:37 ` Yegor Yefremov
0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2016-02-23 20:07 UTC (permalink / raw)
To: buildroot
On 02/22/16 10:20, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Hi Yegor,
A few forgotton words as indicated below.
Also, Peter, have you given some thought to my proposal of requiring the
http://dustycloud.org/blog/vcs-friendly-patchable-document-line-wrapping/
line wrapping style for new documentation patches?
> ---
> docs/manual/adding-packages-python.txt | 36 ++++++++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
>
> diff --git a/docs/manual/adding-packages-python.txt b/docs/manual/adding-packages-python.txt
> index 588dbf8..3278998 100644
> --- a/docs/manual/adding-packages-python.txt
> +++ b/docs/manual/adding-packages-python.txt
> @@ -160,3 +160,39 @@ possible to customize what is done in any particular step:
> +PYTHON_FOO_BUILD_CMDS+ variable, it will be used instead of the
> default Python one. However, using this method should be restricted
> to very specific cases. Do not use it in the general case.
> +
> +[[python-package-cffi-backend]]
> +
> +==== +python-package+ CFFI backend
> +
> +C Foreign Function Interface for Python (CFFI) provides a convenient and
> +reliable way to call compiled C code from Python using interface declarations
> +written in C. Python packages relying on this backend can be identified by
> +appearance of +cffi+ dependency in an +install_requires+ field of their
appearance of the +cffi+ dependency
> ++setup.py+ file.
> +
> +Such a package needs +python-cffi+ as a runtime dependency in order to import
> +compiled C library wrapper on a target and +host-python-cffi+ as a build-time
the compiled C library wrapper on the target, and +host-python-cffi+ as a ...
> +dependency in order to cross-compile the C wrapper. You'll need to add following
You'll need to add the following code
> +code to you package's +Config.in+ and +*.mk+ files respectively:
to the package's +Config.in+ and +*.mk+ files, respectively.
Regards,
Arnout
> +
> +
> +------------------------
> +config BR2_PACKAGE_PYTHON_FOO
> + bool "python-foo"
> + select BR2_PACKAGE_PYTHON_CFFI # runtime
> +------------------------
> +
> +------------------------
> +################################################################################
> +#
> +# python-foo
> +#
> +################################################################################
> +
> +...
> +
> +PYTHON_FOO_DEPENDENCIES = host-python-cffi
> +
> +$(eval $(python-package))
> +------------------------
>
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] docs/manual: add "python-package CFFI backend" section
2016-02-23 20:07 ` Arnout Vandecappelle
@ 2016-02-24 14:37 ` Yegor Yefremov
0 siblings, 0 replies; 3+ messages in thread
From: Yegor Yefremov @ 2016-02-24 14:37 UTC (permalink / raw)
To: buildroot
Hi Arnout,
On Tue, Feb 23, 2016 at 9:07 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On 02/22/16 10:20, yegorslists at googlemail.com wrote:
>> From: Yegor Yefremov <yegorslists@googlemail.com>
>>
>> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
>
> Hi Yegor,
>
> A few forgotton words as indicated below.
>
> Also, Peter, have you given some thought to my proposal of requiring the
> http://dustycloud.org/blog/vcs-friendly-patchable-document-line-wrapping/
> line wrapping style for new documentation patches?
>
>> ---
>> docs/manual/adding-packages-python.txt | 36 ++++++++++++++++++++++++++++++++++
>> 1 file changed, 36 insertions(+)
>>
>> diff --git a/docs/manual/adding-packages-python.txt b/docs/manual/adding-packages-python.txt
>> index 588dbf8..3278998 100644
>> --- a/docs/manual/adding-packages-python.txt
>> +++ b/docs/manual/adding-packages-python.txt
>> @@ -160,3 +160,39 @@ possible to customize what is done in any particular step:
>> +PYTHON_FOO_BUILD_CMDS+ variable, it will be used instead of the
>> default Python one. However, using this method should be restricted
>> to very specific cases. Do not use it in the general case.
>> +
>> +[[python-package-cffi-backend]]
>> +
>> +==== +python-package+ CFFI backend
>> +
>> +C Foreign Function Interface for Python (CFFI) provides a convenient and
>> +reliable way to call compiled C code from Python using interface declarations
>> +written in C. Python packages relying on this backend can be identified by
>> +appearance of +cffi+ dependency in an +install_requires+ field of their
>
> appearance of the +cffi+ dependency
>
>> ++setup.py+ file.
>> +
>> +Such a package needs +python-cffi+ as a runtime dependency in order to import
>> +compiled C library wrapper on a target and +host-python-cffi+ as a build-time
>
> the compiled C library wrapper on the target, and +host-python-cffi+ as a ...
>
>> +dependency in order to cross-compile the C wrapper. You'll need to add following
>
> You'll need to add the following code
>
>> +code to you package's +Config.in+ and +*.mk+ files respectively:
>
> to the package's +Config.in+ and +*.mk+ files, respectively.
>
>
> Regards,
> Arnout
>
>> +
>> +
>> +------------------------
>> +config BR2_PACKAGE_PYTHON_FOO
>> + bool "python-foo"
>> + select BR2_PACKAGE_PYTHON_CFFI # runtime
>> +------------------------
>> +
>> +------------------------
>> +################################################################################
>> +#
>> +# python-foo
>> +#
>> +################################################################################
>> +
>> +...
>> +
>> +PYTHON_FOO_DEPENDENCIES = host-python-cffi
>> +
>> +$(eval $(python-package))
>> +------------------------
>>
Thanks for review. Have sent v2 with applied fixes.
Yegor
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-24 14:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-22 9:20 [Buildroot] [PATCH] docs/manual: add "python-package CFFI backend" section yegorslists at googlemail.com
2016-02-23 20:07 ` Arnout Vandecappelle
2016-02-24 14:37 ` Yegor Yefremov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox