All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH 1/2] python3-packaging: add -native version
@ 2020-07-16 23:18 Ryan Rowe
  2020-07-16 23:18 ` [meta-python][PATCH 2/2] python3-pint: add missing python3-packaging dep Ryan Rowe
  2020-07-20 13:00 ` [oe] [meta-python][PATCH 1/2] python3-packaging: add -native version Trevor Gamblin
  0 siblings, 2 replies; 6+ messages in thread
From: Ryan Rowe @ 2020-07-16 23:18 UTC (permalink / raw)
  To: openembedded-devel; +Cc: jbroadus, Ryan Rowe

Signed-off-by: Ryan Rowe <rrowe@xevo.com>
---
 meta-python/recipes-devtools/python/python3-packaging_20.4.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-packaging_20.4.bb b/meta-python/recipes-devtools/python/python3-packaging_20.4.bb
index 0f78fd016..c75707e69 100644
--- a/meta-python/recipes-devtools/python/python3-packaging_20.4.bb
+++ b/meta-python/recipes-devtools/python/python3-packaging_20.4.bb
@@ -8,5 +8,7 @@ SRC_URI[sha256sum] = "4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d55
 
 inherit pypi setuptools3
 
+BBCLASSEXTEND = "native"
+
 DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
 RDEPENDS_${PN} += "${PYTHON_PN}-six ${PYTHON_PN}-pyparsing"
-- 
2.17.2 (Apple Git-113)


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-python][PATCH 2/2] python3-pint: add missing python3-packaging dep
  2020-07-16 23:18 [meta-python][PATCH 1/2] python3-packaging: add -native version Ryan Rowe
@ 2020-07-16 23:18 ` Ryan Rowe
  2020-07-20 13:06   ` [oe] " Trevor Gamblin
  2020-07-21 16:19   ` Trevor Gamblin
  2020-07-20 13:00 ` [oe] [meta-python][PATCH 1/2] python3-packaging: add -native version Trevor Gamblin
  1 sibling, 2 replies; 6+ messages in thread
From: Ryan Rowe @ 2020-07-16 23:18 UTC (permalink / raw)
  To: openembedded-devel; +Cc: jbroadus, Ryan Rowe

Signed-off-by: Ryan Rowe <rrowe@xevo.com>
---
 meta-python/recipes-devtools/python/python3-pint_0.14.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-pint_0.14.bb b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
index 8e1630476..ab8b4d74d 100644
--- a/meta-python/recipes-devtools/python/python3-pint_0.14.bb
+++ b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
@@ -21,6 +21,10 @@ SRC_URI += " \
 	file://run-ptest \
 "
 
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-packaging \
+"
+
 RDEPENDS_${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
 "
-- 
2.17.2 (Apple Git-113)


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-python][PATCH 1/2] python3-packaging: add -native version
  2020-07-16 23:18 [meta-python][PATCH 1/2] python3-packaging: add -native version Ryan Rowe
  2020-07-16 23:18 ` [meta-python][PATCH 2/2] python3-pint: add missing python3-packaging dep Ryan Rowe
@ 2020-07-20 13:00 ` Trevor Gamblin
  1 sibling, 0 replies; 6+ messages in thread
From: Trevor Gamblin @ 2020-07-20 13:00 UTC (permalink / raw)
  To: Ryan Rowe, openembedded-devel; +Cc: jbroadus

[-- Attachment #1: Type: text/plain, Size: 885 bytes --]


On 7/16/20 7:18 PM, Ryan Rowe wrote:
> Signed-off-by: Ryan Rowe <rrowe@xevo.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
>   meta-python/recipes-devtools/python/python3-packaging_20.4.bb | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/meta-python/recipes-devtools/python/python3-packaging_20.4.bb b/meta-python/recipes-devtools/python/python3-packaging_20.4.bb
> index 0f78fd016..c75707e69 100644
> --- a/meta-python/recipes-devtools/python/python3-packaging_20.4.bb
> +++ b/meta-python/recipes-devtools/python/python3-packaging_20.4.bb
> @@ -8,5 +8,7 @@ SRC_URI[sha256sum] = "4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d55
>   
>   inherit pypi setuptools3
>   
> +BBCLASSEXTEND = "native"
> +
>   DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
>   RDEPENDS_${PN} += "${PYTHON_PN}-six ${PYTHON_PN}-pyparsing"
>
> 

[-- Attachment #2: Type: text/html, Size: 1692 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-python][PATCH 2/2] python3-pint: add missing python3-packaging dep
  2020-07-16 23:18 ` [meta-python][PATCH 2/2] python3-pint: add missing python3-packaging dep Ryan Rowe
@ 2020-07-20 13:06   ` Trevor Gamblin
  2020-07-21 16:19   ` Trevor Gamblin
  1 sibling, 0 replies; 6+ messages in thread
From: Trevor Gamblin @ 2020-07-20 13:06 UTC (permalink / raw)
  To: Ryan Rowe, openembedded-devel; +Cc: jbroadus

[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]


On 7/16/20 7:18 PM, Ryan Rowe wrote:
> Signed-off-by: Ryan Rowe <rrowe@xevo.com>

I get the following when I build an image and test the import:

 >>> import pint
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python3.8/site-packages/pint/__init__.py", line 28, in 
<module>
     from .registry import LazyRegistry, UnitRegistry
   File "/usr/lib/python3.8/site-packages/pint/registry.py", line 49, in 
<module>
     import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Would you mind re-submitting this patch and adding 
${PYTHON_PN}-setuptools to the RDEPENDS?

Trevor

> ---
>   meta-python/recipes-devtools/python/python3-pint_0.14.bb | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/meta-python/recipes-devtools/python/python3-pint_0.14.bb b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
> index 8e1630476..ab8b4d74d 100644
> --- a/meta-python/recipes-devtools/python/python3-pint_0.14.bb
> +++ b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
> @@ -21,6 +21,10 @@ SRC_URI += " \
>   	file://run-ptest \
>   "
>   
> +RDEPENDS_${PN} += " \
> +    ${PYTHON_PN}-packaging \
> +"
> +
>   RDEPENDS_${PN}-ptest += " \
>   	${PYTHON_PN}-pytest \
>   "
>
> 

[-- Attachment #2: Type: text/html, Size: 2314 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-python][PATCH 2/2] python3-pint: add missing python3-packaging dep
  2020-07-16 23:18 ` [meta-python][PATCH 2/2] python3-pint: add missing python3-packaging dep Ryan Rowe
  2020-07-20 13:06   ` [oe] " Trevor Gamblin
@ 2020-07-21 16:19   ` Trevor Gamblin
  2020-07-21 16:51     ` Ryan Rowe
  1 sibling, 1 reply; 6+ messages in thread
From: Trevor Gamblin @ 2020-07-21 16:19 UTC (permalink / raw)
  To: Ryan Rowe, openembedded-devel; +Cc: jbroadus, Khem Raj

[-- Attachment #1: Type: text/plain, Size: 1333 bytes --]


On 7/16/20 7:18 PM, Ryan Rowe wrote:
> Signed-off-by: Ryan Rowe <rrowe@xevo.com>

Needs python3-setuptools and python3-packaging in RDEPENDS to import 
cleanly. I'm going to send a follow-up patch for that shortly:

 >>> import pint
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python3.8/site-packages/pint/__init__.py", line 28, in 
<module>
     from .registry import LazyRegistry, UnitRegistry
   File "/usr/lib/python3.8/site-packages/pint/registry.py", line 49, in 
<module>
     import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'


Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
>   meta-python/recipes-devtools/python/python3-pint_0.14.bb | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/meta-python/recipes-devtools/python/python3-pint_0.14.bb b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
> index 8e1630476..ab8b4d74d 100644
> --- a/meta-python/recipes-devtools/python/python3-pint_0.14.bb
> +++ b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
> @@ -21,6 +21,10 @@ SRC_URI += " \
>   	file://run-ptest \
>   "
>   
> +RDEPENDS_${PN} += " \
> +    ${PYTHON_PN}-packaging \
> +"
> +
>   RDEPENDS_${PN}-ptest += " \
>   	${PYTHON_PN}-pytest \
>   "
>
> 

[-- Attachment #2: Type: text/html, Size: 2431 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-python][PATCH 2/2] python3-pint: add missing python3-packaging dep
  2020-07-21 16:19   ` Trevor Gamblin
@ 2020-07-21 16:51     ` Ryan Rowe
  0 siblings, 0 replies; 6+ messages in thread
From: Ryan Rowe @ 2020-07-21 16:51 UTC (permalink / raw)
  To: Trevor Gamblin, openembedded-devel; +Cc: Jim Broadus, Khem Raj

Sorry about that, didn't see these two messages until now.

    On 7/21/20 9:19 AM, Trevor Gamblin wrote:
        On 7/16/20 7:18 PM, Ryan Rowe wrote:

        Signed-off-by: Ryan Rowe mailto:rrowe@xevo.com

    Needs python3-setuptools and python3-packaging in RDEPENDS to import cleanly. I'm going to send a follow-up patch for that shortly:

    >>> import pint
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.8/site-packages/pint/__init__.py", line 28, in <module>
        from .registry import LazyRegistry, UnitRegistry
      File "/usr/lib/python3.8/site-packages/pint/registry.py", line 49, in <module>
        import pkg_resources
    ModuleNotFoundError: No module named 'pkg_resources'

Strange... I tested these two patches as bbappends in our meta layer with no issues.
Perhaps that path didn't load the unit registry. Thanks for taking care of this.

    Acked-by: Trevor Gamblin mailto:trevor.gamblin@windriver.com

        ---
         meta-python/recipes-devtools/python/python3-pint_0.14.bb | 4 ++++
         1 file changed, 4 insertions(+)

        diff --git a/meta-python/recipes-devtools/python/python3-pint_0.14.bb b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
        index 8e1630476..ab8b4d74d 100644
        --- a/meta-python/recipes-devtools/python/python3-pint_0.14.bb
        +++ b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
        @@ -21,6 +21,10 @@ SRC_URI += " \
            /run-ptest \
         "

        +RDEPENDS_${PN} += " \
        +    ${PYTHON_PN}-packaging \
        +"
        +
         RDEPENDS_${PN}-ptest += " \
            ${PYTHON_PN}-pytest \
         "


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-21 16:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16 23:18 [meta-python][PATCH 1/2] python3-packaging: add -native version Ryan Rowe
2020-07-16 23:18 ` [meta-python][PATCH 2/2] python3-pint: add missing python3-packaging dep Ryan Rowe
2020-07-20 13:06   ` [oe] " Trevor Gamblin
2020-07-21 16:19   ` Trevor Gamblin
2020-07-21 16:51     ` Ryan Rowe
2020-07-20 13:00 ` [oe] [meta-python][PATCH 1/2] python3-packaging: add -native version Trevor Gamblin

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.