* [Buildroot] [git commit] package/python-maturin: new package
@ 2022-07-24 7:50 Thomas Petazzoni via buildroot
2022-07-24 8:32 ` Romain Naour
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-07-24 7:50 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=2d991c92f5be6a9a858c8689ea2d927365e9c664
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
This is pep517 pyo3 build backend that's an alternative to
python-setuptools-rust.
Note that maturin itself uses python-setuptools-rust for
bootstrapping.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Tested-by: Graeme Smecher <gsmecher@threespeedlogic.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
DEVELOPERS | 1 +
package/python-maturin/python-maturin.hash | 5 +++++
package/python-maturin/python-maturin.mk | 25 +++++++++++++++++++++++++
3 files changed, 31 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index ee836266be..bb840e420a 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1348,6 +1348,7 @@ F: package/python-greenlet/
F: package/python-installer/
F: package/python-janus/
F: package/python-logstash/
+F: package/python-maturin/
F: package/python-multidict/
F: package/python-mypy-extensions/
F: package/python-pep517/
diff --git a/package/python-maturin/python-maturin.hash b/package/python-maturin/python-maturin.hash
new file mode 100644
index 0000000000..383dbf8737
--- /dev/null
+++ b/package/python-maturin/python-maturin.hash
@@ -0,0 +1,5 @@
+# Locally calculated after vendoring
+sha256 4ea4f6b02cabffc8b56c488956ad572abfabdce935128007dff48a6e95b553d2 maturin-0.12.20.tar.gz
+# Locally computed sha256 checksums
+sha256 a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2 license-apache
+sha256 ea7882c559733766ad08343bde1d1ec80a4967c03a738fb8e0058ef6289f7b7c license-mit
diff --git a/package/python-maturin/python-maturin.mk b/package/python-maturin/python-maturin.mk
new file mode 100644
index 0000000000..3d5ba70391
--- /dev/null
+++ b/package/python-maturin/python-maturin.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# python-maturin
+#
+################################################################################
+
+PYTHON_MATURIN_VERSION = 0.12.20
+PYTHON_MATURIN_SOURCE = maturin-$(PYTHON_MATURIN_VERSION).tar.gz
+PYTHON_MATURIN_SITE = https://files.pythonhosted.org/packages/39/ba/fec598956393230341def42367c6ad0efbee6ddc899f8858e5b25a7f37a5
+PYTHON_MATURIN_SETUP_TYPE = setuptools
+PYTHON_MATURIN_LICENSE = Apache-2.0 or MIT
+PYTHON_MATURIN_LICENSE_FILES = license-apache license-mit
+HOST_PYTHON_MATURIN_DEPENDENCIES = \
+ host-python-setuptools-rust \
+ host-python-tomli \
+ host-rustc
+HOST_PYTHON_MATURIN_ENV = \
+ $(HOST_PKG_CARGO_ENV) \
+ PYO3_CROSS_LIB_DIR="$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
+# We need to vendor the Cargo crates at download time
+PYTHON_MATURIN_DOWNLOAD_POST_PROCESS = cargo
+PYTHON_MATURIN_DOWNLOAD_DEPENDENCIES = host-rustc
+HOST_PYTHON_MATURIN_DL_ENV = $(HOST_PKG_CARGO_ENV)
+
+$(eval $(host-python-package))
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Buildroot] [git commit] package/python-maturin: new package
2022-07-24 7:50 [Buildroot] [git commit] package/python-maturin: new package Thomas Petazzoni via buildroot
@ 2022-07-24 8:32 ` Romain Naour
2022-07-24 8:38 ` James Hilliard
2022-07-24 9:22 ` Thomas Petazzoni via buildroot
0 siblings, 2 replies; 5+ messages in thread
From: Romain Naour @ 2022-07-24 8:32 UTC (permalink / raw)
To: Thomas Petazzoni, buildroot
Hello,
Le 24/07/2022 à 09:50, Thomas Petazzoni via buildroot a écrit :
> commit: https://git.buildroot.net/buildroot/commit/?id=2d991c92f5be6a9a858c8689ea2d927365e9c664
> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>
> This is pep517 pyo3 build backend that's an alternative to
> python-setuptools-rust.
>
> Note that maturin itself uses python-setuptools-rust for
> bootstrapping.
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> Tested-by: Graeme Smecher <gsmecher@threespeedlogic.com>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
...
> +++ b/package/python-maturin/python-maturin.mk
> @@ -0,0 +1,25 @@
> +################################################################################
> +#
> +# python-maturin
> +#
> +################################################################################
> +
> +PYTHON_MATURIN_VERSION = 0.12.20
> +PYTHON_MATURIN_SOURCE = maturin-$(PYTHON_MATURIN_VERSION).tar.gz
> +PYTHON_MATURIN_SITE = https://files.pythonhosted.org/packages/39/ba/fec598956393230341def42367c6ad0efbee6ddc899f8858e5b25a7f37a5
> +PYTHON_MATURIN_SETUP_TYPE = setuptools
> +PYTHON_MATURIN_LICENSE = Apache-2.0 or MIT
> +PYTHON_MATURIN_LICENSE_FILES = license-apache license-mit
> +HOST_PYTHON_MATURIN_DEPENDENCIES = \
> + host-python-setuptools-rust \
> + host-python-tomli \
> + host-rustc
> +HOST_PYTHON_MATURIN_ENV = \
> + $(HOST_PKG_CARGO_ENV) \
> + PYO3_CROSS_LIB_DIR="$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
Should be $(HOST_DIR)/lib here.
See
http://patchwork.ozlabs.org/project/buildroot/patch/bc16adfe3d7143105e840072edb169e4cb7354cc.1658007000.git.yann.morin.1998@free.fr/
Best regards,
Romain
> +# We need to vendor the Cargo crates at download time
> +PYTHON_MATURIN_DOWNLOAD_POST_PROCESS = cargo
> +PYTHON_MATURIN_DOWNLOAD_DEPENDENCIES = host-rustc
> +HOST_PYTHON_MATURIN_DL_ENV = $(HOST_PKG_CARGO_ENV)
> +
> +$(eval $(host-python-package))
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [git commit] package/python-maturin: new package
2022-07-24 8:32 ` Romain Naour
@ 2022-07-24 8:38 ` James Hilliard
2022-07-24 8:43 ` Romain Naour
2022-07-24 9:22 ` Thomas Petazzoni via buildroot
1 sibling, 1 reply; 5+ messages in thread
From: James Hilliard @ 2022-07-24 8:38 UTC (permalink / raw)
To: Romain Naour; +Cc: Thomas Petazzoni, buildroot
On Sun, Jul 24, 2022 at 2:32 AM Romain Naour <romain.naour@smile.fr> wrote:
>
> Hello,
>
> Le 24/07/2022 à 09:50, Thomas Petazzoni via buildroot a écrit :
> > commit: https://git.buildroot.net/buildroot/commit/?id=2d991c92f5be6a9a858c8689ea2d927365e9c664
> > branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
> >
> > This is pep517 pyo3 build backend that's an alternative to
> > python-setuptools-rust.
> >
> > Note that maturin itself uses python-setuptools-rust for
> > bootstrapping.
> >
> > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> > Tested-by: Graeme Smecher <gsmecher@threespeedlogic.com>
> > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> > ---
>
> ...
>
> > +++ b/package/python-maturin/python-maturin.mk
> > @@ -0,0 +1,25 @@
> > +################################################################################
> > +#
> > +# python-maturin
> > +#
> > +################################################################################
> > +
> > +PYTHON_MATURIN_VERSION = 0.12.20
> > +PYTHON_MATURIN_SOURCE = maturin-$(PYTHON_MATURIN_VERSION).tar.gz
> > +PYTHON_MATURIN_SITE = https://files.pythonhosted.org/packages/39/ba/fec598956393230341def42367c6ad0efbee6ddc899f8858e5b25a7f37a5
> > +PYTHON_MATURIN_SETUP_TYPE = setuptools
> > +PYTHON_MATURIN_LICENSE = Apache-2.0 or MIT
> > +PYTHON_MATURIN_LICENSE_FILES = license-apache license-mit
> > +HOST_PYTHON_MATURIN_DEPENDENCIES = \
> > + host-python-setuptools-rust \
> > + host-python-tomli \
> > + host-rustc
> > +HOST_PYTHON_MATURIN_ENV = \
> > + $(HOST_PKG_CARGO_ENV) \
> > + PYO3_CROSS_LIB_DIR="$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
>
> Should be $(HOST_DIR)/lib here.
Yeah, that got copy pasted from python-cryptography, fixed both here:
https://patchwork.ozlabs.org/project/buildroot/patch/20220724083748.1503238-1-james.hilliard1@gmail.com/
>
> See
> http://patchwork.ozlabs.org/project/buildroot/patch/bc16adfe3d7143105e840072edb169e4cb7354cc.1658007000.git.yann.morin.1998@free.fr/
>
> Best regards,
> Romain
>
>
> > +# We need to vendor the Cargo crates at download time
> > +PYTHON_MATURIN_DOWNLOAD_POST_PROCESS = cargo
> > +PYTHON_MATURIN_DOWNLOAD_DEPENDENCIES = host-rustc
> > +HOST_PYTHON_MATURIN_DL_ENV = $(HOST_PKG_CARGO_ENV)
> > +
> > +$(eval $(host-python-package))
> > _______________________________________________
> > buildroot mailing list
> > buildroot@buildroot.org
> > https://lists.buildroot.org/mailman/listinfo/buildroot
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [git commit] package/python-maturin: new package
2022-07-24 8:38 ` James Hilliard
@ 2022-07-24 8:43 ` Romain Naour
0 siblings, 0 replies; 5+ messages in thread
From: Romain Naour @ 2022-07-24 8:43 UTC (permalink / raw)
To: James Hilliard; +Cc: Thomas Petazzoni, buildroot
Le 24/07/2022 à 10:38, James Hilliard a écrit :
> On Sun, Jul 24, 2022 at 2:32 AM Romain Naour <romain.naour@smile.fr> wrote:
>>
>> Hello,
>>
>> Le 24/07/2022 à 09:50, Thomas Petazzoni via buildroot a écrit :
>>> commit: https://git.buildroot.net/buildroot/commit/?id=2d991c92f5be6a9a858c8689ea2d927365e9c664
>>> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>>>
>>> This is pep517 pyo3 build backend that's an alternative to
>>> python-setuptools-rust.
>>>
>>> Note that maturin itself uses python-setuptools-rust for
>>> bootstrapping.
>>>
>>> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
>>> Tested-by: Graeme Smecher <gsmecher@threespeedlogic.com>
>>> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
>>> ---
>>
>> ...
>>
>>> +++ b/package/python-maturin/python-maturin.mk
>>> @@ -0,0 +1,25 @@
>>> +################################################################################
>>> +#
>>> +# python-maturin
>>> +#
>>> +################################################################################
>>> +
>>> +PYTHON_MATURIN_VERSION = 0.12.20
>>> +PYTHON_MATURIN_SOURCE = maturin-$(PYTHON_MATURIN_VERSION).tar.gz
>>> +PYTHON_MATURIN_SITE = https://files.pythonhosted.org/packages/39/ba/fec598956393230341def42367c6ad0efbee6ddc899f8858e5b25a7f37a5
>>> +PYTHON_MATURIN_SETUP_TYPE = setuptools
>>> +PYTHON_MATURIN_LICENSE = Apache-2.0 or MIT
>>> +PYTHON_MATURIN_LICENSE_FILES = license-apache license-mit
>>> +HOST_PYTHON_MATURIN_DEPENDENCIES = \
>>> + host-python-setuptools-rust \
>>> + host-python-tomli \
>>> + host-rustc
>>> +HOST_PYTHON_MATURIN_ENV = \
>>> + $(HOST_PKG_CARGO_ENV) \
>>> + PYO3_CROSS_LIB_DIR="$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
>>
>> Should be $(HOST_DIR)/lib here.
>
> Yeah, that got copy pasted from python-cryptography, fixed both here:
> https://patchwork.ozlabs.org/project/buildroot/patch/20220724083748.1503238-1-james.hilliard1@gmail.com/
Well, see the patch from Yann. It already take care of python-cryptography along
other packages. I guess his patch can be updated while applying to fix
python-maturin.
Best regards,
Romain
>
>>
>> See
>> http://patchwork.ozlabs.org/project/buildroot/patch/bc16adfe3d7143105e840072edb169e4cb7354cc.1658007000.git.yann.morin.1998@free.fr/
>>
>> Best regards,
>> Romain
>>
>>
>>> +# We need to vendor the Cargo crates at download time
>>> +PYTHON_MATURIN_DOWNLOAD_POST_PROCESS = cargo
>>> +PYTHON_MATURIN_DOWNLOAD_DEPENDENCIES = host-rustc
>>> +HOST_PYTHON_MATURIN_DL_ENV = $(HOST_PKG_CARGO_ENV)
>>> +
>>> +$(eval $(host-python-package))
>>> _______________________________________________
>>> buildroot mailing list
>>> buildroot@buildroot.org
>>> https://lists.buildroot.org/mailman/listinfo/buildroot
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot@buildroot.org
>> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [git commit] package/python-maturin: new package
2022-07-24 8:32 ` Romain Naour
2022-07-24 8:38 ` James Hilliard
@ 2022-07-24 9:22 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-07-24 9:22 UTC (permalink / raw)
To: Romain Naour; +Cc: buildroot
On Sun, 24 Jul 2022 10:32:00 +0200
Romain Naour <romain.naour@smile.fr> wrote:
> Should be $(HOST_DIR)/lib here.
>
> See
> http://patchwork.ozlabs.org/project/buildroot/patch/bc16adfe3d7143105e840072edb169e4cb7354cc.1658007000.git.yann.morin.1998@free.fr/
Good point. Thankfully,
https://patchwork.ozlabs.org/project/buildroot/patch/20220724054912.2354219-17-ricardo.martincoski@gmail.com/
is arriving :-)
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-07-24 9:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-24 7:50 [Buildroot] [git commit] package/python-maturin: new package Thomas Petazzoni via buildroot
2022-07-24 8:32 ` Romain Naour
2022-07-24 8:38 ` James Hilliard
2022-07-24 8:43 ` Romain Naour
2022-07-24 9:22 ` Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.