Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH next v2 1/7] package/python-idna: set _SETUP_TYPE = flit
@ 2022-11-22 20:31 Julien Olivain
  2022-11-22 20:31 ` [Buildroot] [PATCH next v2 2/7] package/python-hkdf: new package Julien Olivain
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Julien Olivain @ 2022-11-22 20:31 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain, Thomas Petazzoni, Asaf Kahlon

Python idna package switched to pyproject.toml in commit:
https://github.com/kjd/idna/commit/2a00e518efe55d2eeb62cd3f88ace7db41338603
which is included in idna v3.4.

When using the old setuptools infra, the package is incorrectly
installed as v0.0, which is then incorrectly detected by other
packages when using setuptools pkg_resources.

The issue can be reproduced with the command:

    python3 <<EOF
    __requires__ = ["idna >= 2.5"]
    import pkg_resources
    EOF

which will fail with output:

    pkg_resources.ContextualVersionConflict: (idna 0.0.0 (/usr/lib/python3.11/site-packages), Requirement.parse('idna>=2.5'), {'hyperlink'})
    pkg_resources.DistributionNotFound: The 'idna>=2.5' distribution was not found and is required by hyperlink

This commit changes _SETUP_TYPE to "flit" to fix this issue.

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Changes v1 -> v2:
- Included James' review comment:
  - _SETUP_TYPE changed from pep517 to flit
---
 package/python-idna/python-idna.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/python-idna/python-idna.mk b/package/python-idna/python-idna.mk
index 4d9994a9c7..3976cb1518 100644
--- a/package/python-idna/python-idna.mk
+++ b/package/python-idna/python-idna.mk
@@ -9,7 +9,7 @@ PYTHON_IDNA_SOURCE = idna-$(PYTHON_IDNA_VERSION).tar.gz
 PYTHON_IDNA_SITE = https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438
 PYTHON_IDNA_LICENSE = BSD-3-Clause
 PYTHON_IDNA_LICENSE_FILES = LICENSE.md
-PYTHON_IDNA_SETUP_TYPE = setuptools
+PYTHON_IDNA_SETUP_TYPE = flit
 
 $(eval $(python-package))
 $(eval $(host-python-package))
-- 
2.38.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2023-02-23 19:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-22 20:31 [Buildroot] [PATCH next v2 1/7] package/python-idna: set _SETUP_TYPE = flit Julien Olivain
2022-11-22 20:31 ` [Buildroot] [PATCH next v2 2/7] package/python-hkdf: new package Julien Olivain
2022-11-22 20:31 ` [Buildroot] [PATCH next v2 3/7] package/python-spake2: " Julien Olivain
2022-11-22 20:31 ` [Buildroot] [PATCH next v2 4/7] package/python-magic-wormhole: " Julien Olivain
2022-11-22 20:31 ` [Buildroot] [PATCH next v2 5/7] package/python-magic-wormhole-mailbox-server: " Julien Olivain
2022-11-22 20:31 ` [Buildroot] [PATCH next v2 6/7] package/python-magic-wormhole-transit-relay: " Julien Olivain
2022-11-22 20:31 ` [Buildroot] [PATCH next v2 7/7] support/testing/tests/package/test_python_magic_wormhole.py: new runtime test Julien Olivain
2022-12-21 22:21 ` [Buildroot] [PATCH next v2 1/7] package/python-idna: set _SETUP_TYPE = flit Marcus Hoffmann via buildroot
2023-02-23 19:02   ` Peter Korsgaard
2023-02-07 13:31 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox