summaryrefslogtreecommitdiffstats
path: root/lang/python/python-cryptography/patches/0004-disable-rust.patch
blob: bf3010bb03f7a24a62e6f652f12d24ad5b192415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,7 +6,6 @@ requires = [
     "wheel",
     # Must be kept in sync with the `setup_requirements` in `setup.py`
     "cffi>=1.12; platform_python_implementation != 'PyPy'",
-    "setuptools-rust>=0.11.4",
 ]
 build-backend = "setuptools.build_meta"
 
--- 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(
         """
@@ -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
 
-if os.environ.get("CRYPTOGRAPHY_DONT_BUILD_RUST"):
+if True:
     rust_extensions = []
 else:
     rust_extensions = [