From 9e3b7d78837b7181b859472894aa243a2eae595b Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 7 Jul 2022 17:35:41 +0800 Subject: python-cryptography: Fix failing build Fixes https://github.com/openwrt/packages/issues/18876. Fixes https://github.com/openwrt/packages/issues/18879. Signed-off-by: Jeffery To --- lang/python/python-cryptography/patches/0004-disable-rust.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lang/python/python-cryptography/patches') diff --git a/lang/python/python-cryptography/patches/0004-disable-rust.patch b/lang/python/python-cryptography/patches/0004-disable-rust.patch index b005851cb..81c45a44d 100644 --- a/lang/python/python-cryptography/patches/0004-disable-rust.patch +++ b/lang/python/python-cryptography/patches/0004-disable-rust.patch @@ -9,9 +9,12 @@ except ImportError: print( """ -@@ -45,7 +45,7 @@ setuptools_rust = "setuptools-rust>=0.11 +@@ -43,9 +43,9 @@ with open(os.path.join(src_dir, "cryptog + # `pyproject.toml` + setuptools_rust = "setuptools-rust>=0.11.4" install_requirements = ["cffi>=1.12"] - setup_requirements = install_requirements + [setuptools_rust] +-setup_requirements = install_requirements + [setuptools_rust] ++setup_requirements = install_requirements -if os.environ.get("CRYPTOGRAPHY_DONT_BUILD_RUST"): +if True: -- cgit