summaryrefslogtreecommitdiff
path: root/lang/python/python-cryptography/patches/0004-disable-rust.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/python-cryptography/patches/0004-disable-rust.patch')
-rw-r--r--lang/python/python-cryptography/patches/0004-disable-rust.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/python/python-cryptography/patches/0004-disable-rust.patch b/lang/python/python-cryptography/patches/0004-disable-rust.patch
new file mode 100644
index 000000000..b005851cb
--- /dev/null
+++ b/lang/python/python-cryptography/patches/0004-disable-rust.patch
@@ -0,0 +1,20 @@
+--- a/setup.py
++++ b/setup.py
+@@ -11,7 +11,7 @@ import sys
+ from setuptools import find_packages, setup
+
+ try:
+- from setuptools_rust import RustExtension
++ pass
+ except ImportError:
+ print(
+ """
+@@ -45,7 +45,7 @@ setuptools_rust = "setuptools-rust>=0.11
+ install_requirements = ["cffi>=1.12"]
+ setup_requirements = install_requirements + [setuptools_rust]
+
+-if os.environ.get("CRYPTOGRAPHY_DONT_BUILD_RUST"):
++if True:
+ rust_extensions = []
+ else:
+ rust_extensions = [