package/python-cryptography: add host variant
PATCH v2 1/4 package/python-cryptography: add host variant
Since commit 0c7e30b43a5e98abfc8db521a6415b5a5c1c267f, python-cryptography depends on python3. So python3-cryptography became redundant at that point. As python3-cryptography is a host-only package, while python-cryptography is a python-only package, add a host variant to python-cryptography to be able to drop python3-cryptography.
While at it, drop host-python3-pip and host-python3-six as these dependencies are not needed. Indeed, pip was never a dependency of cryptography and six is not a dependency with python3 and will be dropped in version 3.4 and
https://github.com/pyca/cryptography/commit/e66db8079d3fbd0110e87ece1fd48f4bfd9e48b9
--- package/python-cryptography/python-cryptography.mk | 3 +++ 1 file changed, 3 insertions(+)
package/python-cryptography/python-cryptography.mk +3 -0
@@ -14,5 +14,8 @@ PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD PYTHON_CRYPTOGRAPHY_CPE_ID_VENDOR = cryptography_project PYTHON_CRYPTOGRAPHY_CPE_ID_PRODUCT = cryptography PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python-cffi openssl +HOST_PYTHON_CRYPTOGRAPHY_NEEDS_HOST_PYTHON = python3 +HOST_PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python3-cffi host-openssl $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/4 package/python3-cryptography: drop package
python3-cryptography is not needed anymore now that python-cryptography has a host variant
--- .../python-cryptography.mk | 1 - .../python3-cryptography.hash | 1 - .../python3-cryptography.mk | 24 ------------------- 3 files changed, 26 deletions(-) delete mode 120000 package/python3-cryptography/python3-cryptography.hash delete mode 100644 package/python3-cryptography/python3-cryptography.mk
package/python-cryptography/python-cryptography.mk +0 -1
@@ -4,7 +4,6 @@ # ################################################################################ -# Please keep in sync with package/python3-cryptography/python3-cryptography.mk PYTHON_CRYPTOGRAPHY_VERSION = 3.3.2 PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz PYTHON_CRYPTOGRAPHY_SITE = https://files.pythonhosted.org/packages/d4/85/38715448253404186029c575d559879912eb8a1c5d16ad9f25d35f7c4f4c
package/python3-cryptography/python3-cryptography.hash deleted +0 -1
@@ -1 +0,0 @@ -../python-cryptography/python-cryptography.hash
package/python3-cryptography/python3-cryptography.mk deleted +0 -24
@@ -1,24 +0,0 @@ -################################################################################ -# -# python3-cryptography -# -################################################################################ - -# Please keep in sync with package/python-cryptography/python-cryptography.mk -PYTHON3_CRYPTOGRAPHY_VERSION = 3.3.2 -PYTHON3_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON3_CRYPTOGRAPHY_VERSION).tar.gz -PYTHON3_CRYPTOGRAPHY_SITE = https://files.pythonhosted.org/packages/d4/85/38715448253404186029c575d559879912eb8a1c5d16ad9f25d35f7c4f4c -PYTHON3_CRYPTOGRAPHY_SETUP_TYPE = setuptools -PYTHON3_CRYPTOGRAPHY_LICENSE = Apache-2.0 or BSD-3-Clause -PYTHON3_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD -PYTHON3_CRYPTOGRAPHY_CPE_ID_VENDOR = cryptography_project -PYTHON3_CRYPTOGRAPHY_CPE_ID_PRODUCT = cryptography -HOST_PYTHON3_CRYPTOGRAPHY_DL_SUBDIR = python-cryptography -HOST_PYTHON3_CRYPTOGRAPHY_NEEDS_HOST_PYTHON = python3 -HOST_PYTHON3_CRYPTOGRAPHY_DEPENDENCIES = \ - host-openssl \ - host-python3-cffi \ - host-python3-pip \ - host-python3-six - -$(eval $(host-python-package))
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 3/4 package/python3-pip: drop package
In reply to Fabrice FontaineDrop python3-pip now that python3-cryptography has been removed
--- package/python-pip/python-pip.mk | 1 - package/python3-pip/python3-pip.hash | 1 - package/python3-pip/python3-pip.mk | 19 ------------------- 3 files changed, 21 deletions(-) delete mode 120000 package/python3-pip/python3-pip.hash delete mode 100644 package/python3-pip/python3-pip.mk
package/python-pip/python-pip.mk +0 -1
@@ -4,7 +4,6 @@ # ################################################################################ -# Please keep in sync with package/python3-pip/python3-pip.mk PYTHON_PIP_VERSION = 21.2.4 PYTHON_PIP_SOURCE = pip-$(PYTHON_PIP_VERSION).tar.gz PYTHON_PIP_SITE = https://files.pythonhosted.org/packages/52/e1/06c018197d8151383f66ebf6979d951995cf495629fc54149491f5d157d0
package/python3-pip/python3-pip.hash deleted +0 -1
@@ -1 +0,0 @@ -../python-pip/python-pip.hash
package/python3-pip/python3-pip.mk deleted +0 -19
@@ -1,19 +0,0 @@ -################################################################################ -# -# python3-pip -# -################################################################################ - -# Please keep in sync with package/python-pip/python-pip.mk -PYTHON3_PIP_VERSION = 21.2.4 -PYTHON3_PIP_SOURCE = pip-$(PYTHON_PIP_VERSION).tar.gz -PYTHON3_PIP_SITE = https://files.pythonhosted.org/packages/52/e1/06c018197d8151383f66ebf6979d951995cf495629fc54149491f5d157d0 -PYTHON3_PIP_SETUP_TYPE = setuptools -PYTHON3_PIP_LICENSE = MIT -PYTHON3_PIP_LICENSE_FILES = LICENSE.txt -PYTHON3_PIP_CPE_ID_VENDOR = pypa -PYTHON3_PIP_CPE_ID_PRODUCT = pip -HOST_PYTHON3_PIP_DL_SUBDIR = python-pip -HOST_PYTHON3_PIP_NEEDS_HOST_PYTHON = python3 - -$(eval $(host-python-package))
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 4/4 package/python-pip: needs python3
In reply to Fabrice Fontainepython 2 support has been dropped since version 21.0 resulting in the following build failure since bump to version 21.2.4 in commit 3491f34d9ed97ac5980ff4a450367914b6985ff1:
File "setup.py", line 7
def read(rel_path: str) -> str:
^Fixes:
- http://autobuild.buildroot.org/results/ed74f4ca96332454af329fac23505000c379d4a3
---
Changes v1 -> v2 (after review of Arnout Vandecappelle)
- Split patch
package/python-pip/Config.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
package/python-pip/Config.in +2 -3
@@ -1,9 +1,8 @@ config BR2_PACKAGE_PYTHON_PIP bool "python-pip" - select BR2_PACKAGE_PYTHON_HASHLIB if BR2_PACKAGE_PYTHON # runtime + depends on BR2_PACKAGE_PYTHON3 select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime - select BR2_PACKAGE_PYTHON_SSL if BR2_PACKAGE_PYTHON # runtime - select BR2_PACKAGE_PYTHON3_SSL if BR2_PACKAGE_PYTHON3 # runtime + select BR2_PACKAGE_PYTHON3_SSL help The PyPA recommended tool for installing Python packages.
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 22 lines · Fabrice Fontaine
Since commit
0c7e30b43a5e98abfc8db521a6415b5a5c1c267f, python-cryptography depends on python3. So python3-cryptography became redundant at that point. As python3-cryptography is a host-only package, while python-cryptography is a python-only package, add a host variant to python-cryptography to be able to drop python3-cryptography.While at it, drop host-python3-pip and host-python3-six as these dependencies are not needed. Indeed, pip was never a dependency of cryptography and six is not a dependency with python3 and will be dropped in version 3.4 and
https://github.com/pyca/cryptography/commit/e66db8079d3fbd0110e87ece1fd48f4bfd9e48b9Signed-off-by Fabrice Fontaine <[email protected]>--- package/python-cryptography/python-cryptography.mk | 3 +++ 1 file changed, 3 insertions(+)package/python-cryptography/python-cryptography.mk +0
-0
package/python-cryptography/python-cryptography.mk PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD · line 21
Quoted 8 lines
package/python-cryptography/python-cryptography.mk +3
-0@@ -14,5 +14,8 @@ PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD PYTHON_CRYPTOGRAPHY_CPE_ID_VENDOR = cryptography_project PYTHON_CRYPTOGRAPHY_CPE_ID_PRODUCT = cryptography PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python-cffi openssl +HOST_PYTHON_CRYPTOGRAPHY_NEEDS_HOST_PYTHON = python3 +HOST_PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python3-cffi host-openssl $(eval $(python-package)) +$(eval $(host-python-package))
You forgot to update ca-certificates to use host-python-cryptography instead
of python-cryptography. Could have been a separate patch, but I just did it as part of this one.
Series applied to master, thanks.
Regards,
Arnout
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot